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

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: 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 25 matching lines...) Expand all
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::WebContentsObserver implementation. 43 // content::WebContentsObserver implementation.
44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
45 45
46 virtual content::WebContents* CreateNewGuestWindow(
47 const content::WebContents::CreateParams& create_params) OVERRIDE;
48
49 virtual void WebContentsCreated(content::WebContents* source_contents,
50 int opener_render_frame_id,
51 const base::string16& frame_name,
52 const GURL& target_url,
53 content::WebContents* new_contents) OVERRIDE;
54
46 private: 55 private:
47 ExtensionOptionsGuest(content::BrowserContext* browser_context, 56 ExtensionOptionsGuest(content::BrowserContext* browser_context,
48 int guest_instance_id); 57 int guest_instance_id);
49 virtual ~ExtensionOptionsGuest(); 58 virtual ~ExtensionOptionsGuest();
50 void SetUpAutoSize(); 59 void SetUpAutoSize();
51 void OnRequest(const ExtensionHostMsg_Request_Params& params); 60 void OnRequest(const ExtensionHostMsg_Request_Params& params);
52 61
53 scoped_ptr<extensions::ExtensionFunctionDispatcher> 62 scoped_ptr<extensions::ExtensionFunctionDispatcher>
54 extension_function_dispatcher_; 63 extension_function_dispatcher_;
55 GURL options_page_; 64 GURL options_page_;
56 65
57 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); 66 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest);
58 }; 67 };
59 68
60 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H _ 69 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698