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

Side by Side Diff: extensions/browser/api/extensions_api_client.h

Issue 550403003: Move declarative api files to extensions/browser/api/declarative. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests. Created 6 years, 3 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 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 "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "extensions/browser/api/declarative/rules_registry.h"
12 #include "extensions/browser/api/storage/settings_namespace.h" 13 #include "extensions/browser/api/storage/settings_namespace.h"
13 14
14 class GURL; 15 class GURL;
15 16
16 template <class T> 17 template <class T>
17 class ObserverListThreadSafe; 18 class ObserverListThreadSafe;
18 19
19 namespace content { 20 namespace content {
20 class BrowserContext; 21 class BrowserContext;
21 } 22 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 WebViewGuest* web_view_guest) const; 71 WebViewGuest* web_view_guest) const;
71 72
72 // Returns a delegate for some of WebViewPermissionHelper's behavior. The 73 // Returns a delegate for some of WebViewPermissionHelper's behavior. The
73 // caller owns the returned WebViewPermissionHelperDelegate. 74 // caller owns the returned WebViewPermissionHelperDelegate.
74 virtual WebViewPermissionHelperDelegate* 75 virtual WebViewPermissionHelperDelegate*
75 CreateWebViewPermissionHelperDelegate ( 76 CreateWebViewPermissionHelperDelegate (
76 WebViewPermissionHelper* web_view_permission_helper) const; 77 WebViewPermissionHelper* web_view_permission_helper) const;
77 78
78 virtual void RegisterGuestViewTypes() {} 79 virtual void RegisterGuestViewTypes() {}
79 80
81 // TODO(wjmaclean): Remove this as soon as rules_registry_service.* moves to
82 // extensions/browser/api/declarative/.
83 virtual scoped_refptr<RulesRegistry> GetRulesRegistry(
84 content::BrowserContext* browser_context,
85 const RulesRegistry::WebViewKey& webview_key,
86 const std::string& event_name);
87
80 // NOTE: If this interface gains too many methods (perhaps more than 20) it 88 // NOTE: If this interface gains too many methods (perhaps more than 20) it
81 // should be split into one interface per API. 89 // should be split into one interface per API.
82 }; 90 };
83 91
84 } // namespace extensions 92 } // namespace extensions
85 93
86 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 94 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/declarative/test_rules_registry.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698