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

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

Issue 790423002: Add the main frame routing ID to WebContentsDelegate, use it in BackgroundContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content shell Created 6 years 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"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // content::WebContentsDelegate implementation. 45 // content::WebContentsDelegate implementation.
46 content::WebContents* OpenURLFromTab( 46 content::WebContents* OpenURLFromTab(
47 content::WebContents* source, 47 content::WebContents* source,
48 const content::OpenURLParams& params) override; 48 const content::OpenURLParams& params) override;
49 void CloseContents(content::WebContents* source) override; 49 void CloseContents(content::WebContents* source) override;
50 bool HandleContextMenu(const content::ContextMenuParams& params) override; 50 bool HandleContextMenu(const content::ContextMenuParams& params) override;
51 bool ShouldCreateWebContents( 51 bool ShouldCreateWebContents(
52 content::WebContents* web_contents, 52 content::WebContents* web_contents,
53 int route_id, 53 int route_id,
54 int main_frame_route_id,
54 WindowContainerType window_container_type, 55 WindowContainerType window_container_type,
55 const base::string16& frame_name, 56 const base::string16& frame_name,
56 const GURL& target_url, 57 const GURL& target_url,
57 const std::string& partition_id, 58 const std::string& partition_id,
58 content::SessionStorageNamespace* session_storage_namespace) override; 59 content::SessionStorageNamespace* session_storage_namespace) override;
59 60
60 // content::WebContentsObserver implementation. 61 // content::WebContentsObserver implementation.
61 void DidNavigateMainFrame( 62 void DidNavigateMainFrame(
62 const content::LoadCommittedDetails& details, 63 const content::LoadCommittedDetails& details,
63 const content::FrameNavigateParams& params) override; 64 const content::FrameNavigateParams& params) override;
(...skipping 13 matching lines...) Expand all
77 extension_options_guest_delegate_; 78 extension_options_guest_delegate_;
78 GURL options_page_; 79 GURL options_page_;
79 bool has_navigated_; 80 bool has_navigated_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); 82 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest);
82 }; 83 };
83 84
84 } // namespace extensions 85 } // namespace extensions
85 86
86 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE ST_H_ 87 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE ST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698