Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chrome/browser/chromeos/policy/cloud_external_data_manager_base.h

Issue 23625015: Consolidate TestURLFetcherFactory::SetFakeResponse (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const ExternalDataFetcher::FetchCallback& callback) OVERRIDE; 57 const ExternalDataFetcher::FetchCallback& callback) OVERRIDE;
58 58
59 // Allows policies to reference |max_size| bytes of external data even if no 59 // Allows policies to reference |max_size| bytes of external data even if no
60 // |max_size| was specified in policy_templates.json. 60 // |max_size| was specified in policy_templates.json.
61 // TODO(bartfab): This override is only needed because there are no policies 61 // TODO(bartfab): This override is only needed because there are no policies
62 // that reference external data and have a |max_size| yet. Once the first such 62 // that reference external data and have a |max_size| yet. Once the first such
63 // policy is added, use that policy in tests and remove the override. 63 // policy is added, use that policy in tests and remove the override.
64 static void SetMaxExternalDataSizeForTesting(int max_size); 64 static void SetMaxExternalDataSizeForTesting(int max_size);
65 65
66 protected: 66 protected:
67 friend class CouldExternalDataManagerBaseTest; 67 friend class CloudExternalDataManagerBaseTest;
68 68
69 // Try to download and cache all external data referenced by policies in 69 // Try to download and cache all external data referenced by policies in
70 // |policy_store_|. 70 // |policy_store_|.
71 void FetchAll(); 71 void FetchAll();
72 72
73 scoped_refptr<base::SequencedTaskRunner> backend_task_runner_; 73 scoped_refptr<base::SequencedTaskRunner> backend_task_runner_;
74 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; 74 scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
75 75
76 private: 76 private:
77 // The |external_policy_data_fetcher_backend_| handles network I/O for the 77 // The |external_policy_data_fetcher_backend_| handles network I/O for the
(...skipping 10 matching lines...) Expand all
88 // |backend_task_runner_|. 88 // |backend_task_runner_|.
89 class Backend; 89 class Backend;
90 scoped_ptr<Backend> backend_; 90 scoped_ptr<Backend> backend_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(CloudExternalDataManagerBase); 92 DISALLOW_COPY_AND_ASSIGN(CloudExternalDataManagerBase);
93 }; 93 };
94 94
95 } // namespace policy 95 } // namespace policy
96 96
97 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698