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

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 12314164: Modified Omnibox extension api to use JSON Schema Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kalman's requests Created 7 years, 9 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
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_EXTENSIONS_EXTENSION_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h" 16 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h"
17 #include "chrome/browser/extensions/extension_prefs_scope.h" 17 #include "chrome/browser/extensions/extension_prefs_scope.h"
18 #include "chrome/browser/extensions/extension_scoped_prefs.h" 18 #include "chrome/browser/extensions/extension_scoped_prefs.h"
19 #include "chrome/browser/media_galleries/media_galleries_preferences.h" 19 #include "chrome/browser/media_galleries/media_galleries_preferences.h"
20 #include "chrome/common/extensions/api/omnibox.h"
20 #include "chrome/common/extensions/extension.h" 21 #include "chrome/common/extensions/extension.h"
21 #include "extensions/common/url_pattern_set.h" 22 #include "extensions/common/url_pattern_set.h"
22 #include "sync/api/string_ordinal.h" 23 #include "sync/api/string_ordinal.h"
23 24
24 class ExtensionPrefValueMap; 25 class ExtensionPrefValueMap;
25 class ExtensionSorting; 26 class ExtensionSorting;
26 class PrefService; 27 class PrefService;
27 class PrefRegistrySyncable; 28 class PrefRegistrySyncable;
28 29
29 namespace extensions { 30 namespace extensions {
30 class ExtensionPrefsUninstallExtension; 31 class ExtensionPrefsUninstallExtension;
31 class URLPatternSet; 32 class URLPatternSet;
32 struct ExtensionOmniboxSuggestion;
33 33
34 namespace app_file_handler_util { 34 namespace app_file_handler_util {
35 struct SavedFileEntry; 35 struct SavedFileEntry;
36 } 36 }
37 37
38 // Class for managing global and per-extension preferences. 38 // Class for managing global and per-extension preferences.
39 // 39 //
40 // This class distinguishes the following kinds of preferences: 40 // This class distinguishes the following kinds of preferences:
41 // - global preferences: 41 // - global preferences:
42 // internal state for the extension system in general, not associated 42 // internal state for the extension system in general, not associated
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 void AddSavedFileEntry(const std::string& extension_id, 320 void AddSavedFileEntry(const std::string& extension_id,
321 const std::string& id, 321 const std::string& id,
322 const base::FilePath& file_path, 322 const base::FilePath& file_path,
323 bool writable); 323 bool writable);
324 void ClearSavedFileEntries(const std::string& extension_id); 324 void ClearSavedFileEntries(const std::string& extension_id);
325 void GetSavedFileEntries( 325 void GetSavedFileEntries(
326 const std::string& extension_id, 326 const std::string& extension_id,
327 std::vector<app_file_handler_util::SavedFileEntry>* out); 327 std::vector<app_file_handler_util::SavedFileEntry>* out);
328 328
329 // Controls the omnibox default suggestion as set by the extension. 329 // Controls the omnibox default suggestion as set by the extension.
330 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( 330 scoped_ptr<api::omnibox::SuggestDefaultResult> GetOmniboxDefaultSuggestion(
331 const std::string& extension_id); 331 const std::string& extension_id);
332 void SetOmniboxDefaultSuggestion( 332 void SetOmniboxDefaultSuggestion(
333 const std::string& extension_id, 333 const std::string& extension_id,
334 const ExtensionOmniboxSuggestion& suggestion); 334 const extensions::api::omnibox::SuggestDefaultResult& suggestion);
not at google - send to devlin 2013/03/16 00:04:25 extensions:: looks unnecssary
Aaron Jacobs 2013/03/21 21:59:55 Done.
335 335
336 // Returns true if the user enabled this extension to be loaded in incognito 336 // Returns true if the user enabled this extension to be loaded in incognito
337 // mode. 337 // mode.
338 bool IsIncognitoEnabled(const std::string& extension_id); 338 bool IsIncognitoEnabled(const std::string& extension_id);
339 void SetIsIncognitoEnabled(const std::string& extension_id, bool enabled); 339 void SetIsIncognitoEnabled(const std::string& extension_id, bool enabled);
340 340
341 // Returns true if the user has chosen to allow this extension to inject 341 // Returns true if the user has chosen to allow this extension to inject
342 // scripts into pages with file URLs. 342 // scripts into pages with file URLs.
343 bool AllowFileAccess(const std::string& extension_id); 343 bool AllowFileAccess(const std::string& extension_id);
344 void SetAllowFileAccess(const std::string& extension_id, bool allow); 344 void SetAllowFileAccess(const std::string& extension_id, bool allow);
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 scoped_refptr<ContentSettingsStore> content_settings_store_; 654 scoped_refptr<ContentSettingsStore> content_settings_store_;
655 655
656 scoped_ptr<TimeProvider> time_provider_; 656 scoped_ptr<TimeProvider> time_provider_;
657 657
658 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 658 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
659 }; 659 };
660 660
661 } // namespace extensions 661 } // namespace extensions
662 662
663 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 663 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698