OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "extensions/browser/api/storage/settings_namespace.h" | 11 #include "extensions/browser/api/storage/settings_namespace.h" |
12 #include "url/gurl.h" | |
James Cook
2014/07/11 03:16:01
Forward declare GURL please
Fady Samuel
2014/07/11 15:28:56
Done.
| |
12 | 13 |
13 template <class T> | 14 template <class T> |
14 class ObserverListThreadSafe; | 15 class ObserverListThreadSafe; |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 class BrowserContext; | 18 class BrowserContext; |
18 } | 19 } |
19 | 20 |
20 namespace extensions { | 21 namespace extensions { |
21 | 22 |
(...skipping 18 matching lines...) Expand all Loading... | |
40 // Storage API support. | 41 // Storage API support. |
41 | 42 |
42 // Add any additional value store caches (e.g. for chrome.storage.managed) | 43 // Add any additional value store caches (e.g. for chrome.storage.managed) |
43 // to |caches|. By default adds nothing. | 44 // to |caches|. By default adds nothing. |
44 virtual void AddAdditionalValueStoreCaches( | 45 virtual void AddAdditionalValueStoreCaches( |
45 content::BrowserContext* context, | 46 content::BrowserContext* context, |
46 const scoped_refptr<SettingsStorageFactory>& factory, | 47 const scoped_refptr<SettingsStorageFactory>& factory, |
47 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, | 48 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, |
48 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches); | 49 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches); |
49 | 50 |
51 // Attaches a frame |url| inside the <appview> specified by | |
52 // |guest_instance_id|. | |
James Cook
2014/07/11 03:16:01
Document the meaning of the returned boolean.
Fady Samuel
2014/07/11 15:28:56
Done.
| |
53 virtual bool AppViewInternalAttachFrame( | |
54 const GURL& url, | |
James Cook
2014/07/11 03:16:01
super nit: For these sorts of Extension interfaces
Fady Samuel
2014/07/11 15:28:56
Done.
| |
55 int guest_instance_id, | |
56 content::BrowserContext* browser_context, | |
57 const std::string& guest_extension_id); | |
58 | |
59 // Denies the embedding requested by the <appview> specified by | |
60 // |guest_instance_id|. | |
James Cook
2014/07/11 03:16:01
Ditto document meaning of return value
Fady Samuel
2014/07/11 15:28:56
Done.
| |
61 virtual bool AppViewInternalDenyRequest( | |
62 int guest_instance_id, | |
63 content::BrowserContext* browser_context, | |
64 const std::string& guest_extension_id); | |
65 | |
50 // NOTE: If this interface gains too many methods (perhaps more than 20) it | 66 // NOTE: If this interface gains too many methods (perhaps more than 20) it |
51 // should be split into one interface per API. | 67 // should be split into one interface per API. |
52 }; | 68 }; |
53 | 69 |
54 } // namespace extensions | 70 } // namespace extensions |
55 | 71 |
56 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 72 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
OLD | NEW |