chromium/net/proxy_resolution/pac_file_data.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_PROXY_RESOLUTION_PAC_FILE_DATA_H_
#define NET_PROXY_RESOLUTION_PAC_FILE_DATA_H_

#include <string>

#include "base/memory/ref_counted.h"
#include "net/base/net_export.h"
#include "url/gurl.h"

namespace net {

// Reference-counted wrapper for passing around a PAC script specification.
// The PAC script can be either specified via a URL, a deferred URL for
// auto-detect, or the actual javascript program text.
//
// This is thread-safe so it can be used by multi-threaded implementations of
// ProxyResolver to share the data between threads.
class NET_EXPORT_PRIVATE PacFileData
    : public base::RefCountedThreadSafe<PacFileData> {};

}  // namespace net

#endif  // NET_PROXY_RESOLUTION_PAC_FILE_DATA_H_