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

Side by Side Diff: chrome/browser/extensions/api/chrome_extensions_api_client.cc

Issue 562353002: Refactor ExtensionOptionsGuestDelegate to have an ExtensionOptionsGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change CreateChromeExtensionWebContentsObserver to DidInitialize 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 #include "chrome/browser/extensions/api/chrome_extensions_api_client.h" 5 #include "chrome/browser/extensions/api/chrome_extensions_api_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" 8 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h"
9 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h" 9 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h"
10 #include "chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h" 10 #include "chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 new ManagedValueStoreCache(context, factory, observers); 42 new ManagedValueStoreCache(context, factory, observers);
43 #endif 43 #endif
44 } 44 }
45 45
46 AppViewGuestDelegate* ChromeExtensionsAPIClient::CreateAppViewGuestDelegate() 46 AppViewGuestDelegate* ChromeExtensionsAPIClient::CreateAppViewGuestDelegate()
47 const { 47 const {
48 return new ChromeAppViewGuestDelegate(); 48 return new ChromeAppViewGuestDelegate();
49 } 49 }
50 50
51 ExtensionOptionsGuestDelegate* 51 ExtensionOptionsGuestDelegate*
52 ChromeExtensionsAPIClient::CreateExtensionOptionsGuestDelegate() const { 52 ChromeExtensionsAPIClient::CreateExtensionOptionsGuestDelegate(
53 return new ChromeExtensionOptionsGuestDelegate(); 53 ExtensionOptionsGuest* guest) const {
54 return new ChromeExtensionOptionsGuestDelegate(guest);
54 } 55 }
55 56
56 scoped_ptr<MimeHandlerViewGuestDelegate> 57 scoped_ptr<MimeHandlerViewGuestDelegate>
57 ChromeExtensionsAPIClient::CreateMimeHandlerViewGuestDelegate( 58 ChromeExtensionsAPIClient::CreateMimeHandlerViewGuestDelegate(
58 MimeHandlerViewGuest* guest) const { 59 MimeHandlerViewGuest* guest) const {
59 return scoped_ptr<ChromeMimeHandlerViewGuestDelegate>( 60 return scoped_ptr<ChromeMimeHandlerViewGuestDelegate>(
60 new ChromeMimeHandlerViewGuestDelegate(guest)) 61 new ChromeMimeHandlerViewGuestDelegate(guest))
61 .PassAs<MimeHandlerViewGuestDelegate>(); 62 .PassAs<MimeHandlerViewGuestDelegate>();
62 } 63 }
63 64
(...skipping 10 matching lines...) Expand all
74 75
75 scoped_refptr<RulesRegistry> ChromeExtensionsAPIClient::GetRulesRegistry( 76 scoped_refptr<RulesRegistry> ChromeExtensionsAPIClient::GetRulesRegistry(
76 content::BrowserContext* browser_context, 77 content::BrowserContext* browser_context,
77 const RulesRegistry::WebViewKey& webview_key, 78 const RulesRegistry::WebViewKey& webview_key,
78 const std::string& event_name) { 79 const std::string& event_name) {
79 return RulesRegistryService::Get(browser_context)-> 80 return RulesRegistryService::Get(browser_context)->
80 GetRulesRegistry(webview_key, event_name); 81 GetRulesRegistry(webview_key, event_name);
81 } 82 }
82 83
83 } // namespace extensions 84 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698