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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1269813002: Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
Patch Set: Created 5 years, 3 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 (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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 FrameTree* GetFrameTree() override; 506 FrameTree* GetFrameTree() override;
507 void SetIsVirtualKeyboardRequested(bool requested) override; 507 void SetIsVirtualKeyboardRequested(bool requested) override;
508 bool IsVirtualKeyboardRequested() override; 508 bool IsVirtualKeyboardRequested() override;
509 509
510 // NavigatorDelegate --------------------------------------------------------- 510 // NavigatorDelegate ---------------------------------------------------------
511 511
512 void DidStartNavigation(NavigationHandle* navigation_handle) override; 512 void DidStartNavigation(NavigationHandle* navigation_handle) override;
513 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; 513 void DidRedirectNavigation(NavigationHandle* navigation_handle) override;
514 void DidCommitNavigation(NavigationHandle* navigation_handle) override; 514 void DidCommitNavigation(NavigationHandle* navigation_handle) override;
515 void DidFinishNavigation(NavigationHandle* navigation_handle) override; 515 void DidFinishNavigation(NavigationHandle* navigation_handle) override;
516 void AddNavigationThrottles(NavigationHandle* navigation_handle) override;
nasko 2015/08/31 23:25:15 Might be worthwhile adding a "for_main_frame_only"
clamy 2015/09/03 15:30:52 I'm not sure the parameter is necessary, since the
nasko 2015/09/04 23:36:49 Acknowledged.
516 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, 517 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host,
517 const GURL& validated_url, 518 const GURL& validated_url,
518 bool is_error_page, 519 bool is_error_page,
519 bool is_iframe_srcdoc) override; 520 bool is_iframe_srcdoc) override;
520 void DidFailProvisionalLoadWithError( 521 void DidFailProvisionalLoadWithError(
521 RenderFrameHostImpl* render_frame_host, 522 RenderFrameHostImpl* render_frame_host,
522 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) 523 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params)
523 override; 524 override;
524 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host, 525 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host,
525 const GURL& url, 526 const GURL& url,
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 // Adds/removes a callback called on creation of each new WebContents. 1308 // Adds/removes a callback called on creation of each new WebContents.
1308 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1309 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1309 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1310 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1310 1311
1311 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1312 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1312 }; 1313 };
1313 1314
1314 } // namespace content 1315 } // namespace content
1315 1316
1316 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1317 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698