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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler.h

Issue 10908226: Introduces a search term extraction mechanism working for arbitrary search providers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed version_46.sql, committed separately. Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 // Returns whether the default search provider is disabled. 279 // Returns whether the default search provider is disabled.
280 bool DefaultSearchProviderIsDisabled(const PolicyMap& policies); 280 bool DefaultSearchProviderIsDisabled(const PolicyMap& policies);
281 281
282 // Returns whether the default search URL is set and valid. On success, both 282 // Returns whether the default search URL is set and valid. On success, both
283 // outparams (which must be non-NULL) are filled with the search URL. 283 // outparams (which must be non-NULL) are filled with the search URL.
284 bool DefaultSearchURLIsValid(const PolicyMap& policies, 284 bool DefaultSearchURLIsValid(const PolicyMap& policies,
285 const Value** url_value, 285 const Value** url_value,
286 std::string* url_string); 286 std::string* url_string);
287 287
288 // Make sure that the |path| if present in |prefs_|. If not, set it to 288 // Make sure that the |path| is present in |prefs_|. If not, set it to
289 // a blank string. 289 // a blank string.
290 void EnsureStringPrefExists(PrefValueMap* prefs, const std::string& path); 290 void EnsureStringPrefExists(PrefValueMap* prefs, const std::string& path);
291 291
292 // Make sure that the |path| is present in |prefs_| and is a ListValue. If
293 // not, set it to an empty list.
294 void EnsureListPrefExists(PrefValueMap* prefs, const std::string& path);
295
292 // The ConfigurationPolicyHandler handlers for each default search policy. 296 // The ConfigurationPolicyHandler handlers for each default search policy.
293 std::vector<ConfigurationPolicyHandler*> handlers_; 297 std::vector<ConfigurationPolicyHandler*> handlers_;
294 298
295 DISALLOW_COPY_AND_ASSIGN(DefaultSearchPolicyHandler); 299 DISALLOW_COPY_AND_ASSIGN(DefaultSearchPolicyHandler);
296 }; 300 };
297 301
298 // ConfigurationPolicyHandler for the proxy policies. 302 // ConfigurationPolicyHandler for the proxy policies.
299 class ProxyPolicyHandler : public ConfigurationPolicyHandler { 303 class ProxyPolicyHandler : public ConfigurationPolicyHandler {
300 public: 304 public:
301 // Constants for the "Proxy Server Mode" defined in the policies. 305 // Constants for the "Proxy Server Mode" defined in the policies.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 virtual void ApplyPolicySettings(const PolicyMap& policies, 415 virtual void ApplyPolicySettings(const PolicyMap& policies,
412 PrefValueMap* prefs) OVERRIDE; 416 PrefValueMap* prefs) OVERRIDE;
413 417
414 private: 418 private:
415 DISALLOW_COPY_AND_ASSIGN(DisabledPluginsByVersionPolicyHandler); 419 DISALLOW_COPY_AND_ASSIGN(DisabledPluginsByVersionPolicyHandler);
416 }; 420 };
417 421
418 } // namespace policy 422 } // namespace policy
419 423
420 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 424 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/google/google_util_unittest.cc ('k') | chrome/browser/policy/configuration_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698