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

Side by Side Diff: extensions/browser/guest_view/extension_options/extension_options_guest.h

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 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_ H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_ H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_ H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_ H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/extension_function_dispatcher.h" 9 #include "extensions/browser/extension_function_dispatcher.h"
10 #include "extensions/browser/guest_view/extension_options/extension_options_gues t_delegate.h" 10 #include "extensions/browser/guest_view/extension_options/extension_options_gues t_delegate.h"
11 #include "extensions/browser/guest_view/guest_view.h" 11 #include "extensions/browser/guest_view/guest_view.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace content { 14 namespace content {
15 class BrowserContext; 15 class BrowserContext;
16 } 16 }
17 17
18 namespace extensions {
19
18 class ExtensionOptionsGuest 20 class ExtensionOptionsGuest
19 : public extensions::GuestView<ExtensionOptionsGuest>, 21 : public extensions::GuestView<ExtensionOptionsGuest>,
20 public extensions::ExtensionFunctionDispatcher::Delegate { 22 public extensions::ExtensionFunctionDispatcher::Delegate {
21 public: 23 public:
22 static const char Type[]; 24 static const char Type[];
23 static extensions::GuestViewBase* Create( 25 static extensions::GuestViewBase* Create(
24 content::BrowserContext* browser_context, 26 content::BrowserContext* browser_context,
25 int guest_instance_id); 27 int guest_instance_id);
26 28
27 // GuestViewBase implementation. 29 // GuestViewBase implementation.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 73
72 scoped_ptr<extensions::ExtensionFunctionDispatcher> 74 scoped_ptr<extensions::ExtensionFunctionDispatcher>
73 extension_function_dispatcher_; 75 extension_function_dispatcher_;
74 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> 76 scoped_ptr<extensions::ExtensionOptionsGuestDelegate>
75 extension_options_guest_delegate_; 77 extension_options_guest_delegate_;
76 GURL options_page_; 78 GURL options_page_;
77 79
78 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); 80 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest);
79 }; 81 };
80 82
83 } // namespace extensions
84
81 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE ST_H_ 85 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE ST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698