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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return true; 125 return true;
126 } 126 }
127 127
128 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { 128 bool WebContentsDelegate::OnGoToEntryOffset(int offset) {
129 return true; 129 return true;
130 } 130 }
131 131
132 bool WebContentsDelegate::ShouldCreateWebContents( 132 bool WebContentsDelegate::ShouldCreateWebContents(
133 WebContents* web_contents, 133 WebContents* web_contents,
134 int route_id, 134 int route_id,
135 int main_frame_route_id,
135 WindowContainerType window_container_type, 136 WindowContainerType window_container_type,
136 const base::string16& frame_name, 137 const base::string16& frame_name,
137 const GURL& target_url, 138 const GURL& target_url,
138 const std::string& partition_id, 139 const std::string& partition_id,
139 SessionStorageNamespace* session_storage_namespace) { 140 SessionStorageNamespace* session_storage_namespace) {
140 return true; 141 return true;
141 } 142 }
142 143
143 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager( 144 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager(
144 WebContents* source) { 145 WebContents* source) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 215
215 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { 216 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) {
216 return false; 217 return false;
217 } 218 }
218 219
219 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) { 220 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) {
220 return false; 221 return false;
221 } 222 }
222 223
223 } // namespace content 224 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/public/test/content_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698