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

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

Issue 112573008: Remove call of PrerenderTracker::TryCancelOnIOThread in ChromeContentBrowserClient::CanCreateWindow… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Shows the repost form confirmation dialog box. 287 // Shows the repost form confirmation dialog box.
288 virtual void ShowRepostFormWarningDialog(WebContents* source) {} 288 virtual void ShowRepostFormWarningDialog(WebContents* source) {}
289 289
290 // Allows delegate to override navigation to the history entries. 290 // Allows delegate to override navigation to the history entries.
291 // Returns true to allow WebContents to continue with the default processing. 291 // Returns true to allow WebContents to continue with the default processing.
292 virtual bool OnGoToEntryOffset(int offset); 292 virtual bool OnGoToEntryOffset(int offset);
293 293
294 // Allows delegate to control whether a WebContents will be created. Returns 294 // Allows delegate to control whether a WebContents will be created. Returns
295 // true to allow the creation. Default is to allow it. In cases where the 295 // true to allow the creation. Default is to allow it. In cases where the
296 // delegate handles the creation/navigation itself, it will use |target_url|. 296 // delegate handles the creation/navigation itself, it will use |target_url|.
297 // The embedder has to synchronously adopt |route_id| or else the view will
298 // be destroyed.
297 virtual bool ShouldCreateWebContents( 299 virtual bool ShouldCreateWebContents(
298 WebContents* web_contents, 300 WebContents* web_contents,
299 int route_id, 301 int route_id,
300 WindowContainerType window_container_type, 302 WindowContainerType window_container_type,
301 const base::string16& frame_name, 303 const base::string16& frame_name,
302 const GURL& target_url, 304 const GURL& target_url,
303 const std::string& partition_id, 305 const std::string& partition_id,
304 SessionStorageNamespace* session_storage_namespace); 306 SessionStorageNamespace* session_storage_namespace);
305 307
306 // Notifies the delegate about the creation of a new WebContents. This 308 // Notifies the delegate about the creation of a new WebContents. This
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // Called when |this| is no longer the WebContentsDelegate for |source|. 481 // Called when |this| is no longer the WebContentsDelegate for |source|.
480 void Detach(WebContents* source); 482 void Detach(WebContents* source);
481 483
482 // The WebContents that this is currently a delegate for. 484 // The WebContents that this is currently a delegate for.
483 std::set<WebContents*> attached_contents_; 485 std::set<WebContents*> attached_contents_;
484 }; 486 };
485 487
486 } // namespace content 488 } // namespace content
487 489
488 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 490 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698