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

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

Issue 471053003: Allow links inside <extensionoptions> to be opened in new tabs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Run formatter and make the WebUI test also use LoadExtension Created 6 years, 4 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 CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_
6 #define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ 6 #define CHROME_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/guest_view.h" 10 #include "extensions/browser/guest_view/guest_view.h"
(...skipping 22 matching lines...) Expand all
33 virtual void DidInitialize() OVERRIDE; 33 virtual void DidInitialize() OVERRIDE;
34 virtual void DidStopLoading() OVERRIDE; 34 virtual void DidStopLoading() OVERRIDE;
35 virtual void GuestSizeChangedDueToAutoSize( 35 virtual void GuestSizeChangedDueToAutoSize(
36 const gfx::Size& old_size, 36 const gfx::Size& old_size,
37 const gfx::Size& new_size) OVERRIDE; 37 const gfx::Size& new_size) OVERRIDE;
38 virtual bool IsAutoSizeSupported() const OVERRIDE; 38 virtual bool IsAutoSizeSupported() const OVERRIDE;
39 39
40 // ExtensionFunctionDispatcher::Delegate implementation. 40 // ExtensionFunctionDispatcher::Delegate implementation.
41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; 41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
42 42
43 // content::WebContentsDelegate implementation.
44 virtual bool ShouldCreateWebContents(
45 content::WebContents* web_contents,
46 int route_id,
47 WindowContainerType window_container_type,
48 const base::string16& frame_name,
49 const GURL& target_url,
50 const std::string& partition_id,
51 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE;
52
43 // content::WebContentsObserver implementation. 53 // content::WebContentsObserver implementation.
44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 54 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
45 55
46 private: 56 private:
47 ExtensionOptionsGuest(content::BrowserContext* browser_context, 57 ExtensionOptionsGuest(content::BrowserContext* browser_context,
48 int guest_instance_id); 58 int guest_instance_id);
49 virtual ~ExtensionOptionsGuest(); 59 virtual ~ExtensionOptionsGuest();
50 void SetUpAutoSize(); 60 void SetUpAutoSize();
51 void OnRequest(const ExtensionHostMsg_Request_Params& params); 61 void OnRequest(const ExtensionHostMsg_Request_Params& params);
52 62
53 scoped_ptr<extensions::ExtensionFunctionDispatcher> 63 scoped_ptr<extensions::ExtensionFunctionDispatcher>
54 extension_function_dispatcher_; 64 extension_function_dispatcher_;
55 GURL options_page_; 65 GURL options_page_;
56 66
57 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); 67 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest);
58 }; 68 };
59 69
60 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H _ 70 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698