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

Side by Side Diff: chrome/browser/extensions/extension_view_host.h

Issue 2375623003: Revert of Allow top-level navigation in extension pop-ups if it only triggers a download. (Closed)
Patch Set: Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // ExtensionHost 61 // ExtensionHost
62 void OnDidStopFirstLoad() override; 62 void OnDidStopFirstLoad() override;
63 void LoadInitialURL() override; 63 void LoadInitialURL() override;
64 bool IsBackgroundPage() const override; 64 bool IsBackgroundPage() const override;
65 65
66 // content::WebContentsDelegate 66 // content::WebContentsDelegate
67 content::WebContents* OpenURLFromTab( 67 content::WebContents* OpenURLFromTab(
68 content::WebContents* source, 68 content::WebContents* source,
69 const content::OpenURLParams& params) override; 69 const content::OpenURLParams& params) override;
70 bool ShouldTransferNavigation(bool is_main_frame_navigation) override;
71 bool PreHandleKeyboardEvent(content::WebContents* source, 70 bool PreHandleKeyboardEvent(content::WebContents* source,
72 const content::NativeWebKeyboardEvent& event, 71 const content::NativeWebKeyboardEvent& event,
73 bool* is_keyboard_shortcut) override; 72 bool* is_keyboard_shortcut) override;
74 void HandleKeyboardEvent( 73 void HandleKeyboardEvent(
75 content::WebContents* source, 74 content::WebContents* source,
76 const content::NativeWebKeyboardEvent& event) override; 75 const content::NativeWebKeyboardEvent& event) override;
77 bool PreHandleGestureEvent(content::WebContents* source, 76 bool PreHandleGestureEvent(content::WebContents* source,
78 const blink::WebGestureEvent& event) override; 77 const blink::WebGestureEvent& event) override;
79 content::ColorChooser* OpenColorChooser( 78 content::ColorChooser* OpenColorChooser(
80 content::WebContents* web_contents, 79 content::WebContents* web_contents,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 associated_web_contents_observer_; 127 associated_web_contents_observer_;
129 128
130 content::NotificationRegistrar registrar_; 129 content::NotificationRegistrar registrar_;
131 130
132 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost); 131 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost);
133 }; 132 };
134 133
135 } // namespace extensions 134 } // namespace extensions
136 135
137 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 136 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698