| Index: components/policy/core/common/cloud/external_policy_data_fetcher.h
|
| diff --git a/chrome/browser/policy/cloud/external_policy_data_fetcher.h b/components/policy/core/common/cloud/external_policy_data_fetcher.h
|
| similarity index 94%
|
| rename from chrome/browser/policy/cloud/external_policy_data_fetcher.h
|
| rename to components/policy/core/common/cloud/external_policy_data_fetcher.h
|
| index 587f3a8d9585bd90a7689d3322355d28613e9040..8f42aa8fd1949edf7919771b8d0b908e0114b17e 100644
|
| --- a/chrome/browser/policy/cloud/external_policy_data_fetcher.h
|
| +++ b/components/policy/core/common/cloud/external_policy_data_fetcher.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_POLICY_CLOUD_EXTERNAL_POLICY_DATA_FETCHER_H_
|
| -#define CHROME_BROWSER_POLICY_CLOUD_EXTERNAL_POLICY_DATA_FETCHER_H_
|
| +#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_EXTERNAL_POLICY_DATA_FETCHER_H_
|
| +#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_EXTERNAL_POLICY_DATA_FETCHER_H_
|
|
|
| #include <map>
|
| #include <set>
|
| @@ -15,6 +15,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "components/policy/policy_export.h"
|
| #include "net/url_request/url_fetcher_delegate.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -38,7 +39,7 @@ class ExternalPolicyDataFetcherBackend;
|
| // The class can be instantiated on any thread but from then on, it must be
|
| // accessed and destroyed on the background thread that the
|
| // ExternalPolicyDataUpdater runs on only.
|
| -class ExternalPolicyDataFetcher {
|
| +class POLICY_EXPORT ExternalPolicyDataFetcher {
|
| public:
|
| // The result of a fetch job.
|
| enum Result {
|
| @@ -122,7 +123,8 @@ class ExternalPolicyDataFetcher {
|
| // CreateFrontend() may be called from the same thread after instantiation. From
|
| // then on, it must be accessed and destroyed on the thread that handles network
|
| // I/O only (in Chrome, this is the IO thread).
|
| -class ExternalPolicyDataFetcherBackend : public net::URLFetcherDelegate {
|
| +class POLICY_EXPORT ExternalPolicyDataFetcherBackend
|
| + : public net::URLFetcherDelegate {
|
| public:
|
| // Callback invoked when a fetch job finishes. If the fetch was successful,
|
| // the Result is SUCCESS and the scoped_ptr contains the retrieved data.
|
| @@ -179,4 +181,4 @@ class ExternalPolicyDataFetcherBackend : public net::URLFetcherDelegate {
|
|
|
| } // namespace policy
|
|
|
| -#endif // CHROME_BROWSER_POLICY_CLOUD_EXTERNAL_POLICY_DATA_FETCHER_H_
|
| +#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_EXTERNAL_POLICY_DATA_FETCHER_H_
|
|
|