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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 358973005: Navigation transitions: Pass is_transition_navigation flag up to the embedder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fix Created 6 years, 4 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
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 CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message, 271 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
272 const blink::WebString& source_name, 272 const blink::WebString& source_name,
273 unsigned source_line, 273 unsigned source_line,
274 const blink::WebString& stack_trace); 274 const blink::WebString& stack_trace);
275 virtual void loadURLExternally(blink::WebLocalFrame* frame, 275 virtual void loadURLExternally(blink::WebLocalFrame* frame,
276 const blink::WebURLRequest& request, 276 const blink::WebURLRequest& request,
277 blink::WebNavigationPolicy policy, 277 blink::WebNavigationPolicy policy,
278 const blink::WebString& suggested_name); 278 const blink::WebString& suggested_name);
279 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. 279 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass.
280 virtual blink::WebNavigationPolicy decidePolicyForNavigation( 280 virtual blink::WebNavigationPolicy decidePolicyForNavigation(
281 blink::WebLocalFrame* frame, 281 const NavigationPolicyInfo& info);
282 blink::WebDataSource::ExtraData* extra_data,
283 const blink::WebURLRequest& request,
284 blink::WebNavigationType type,
285 blink::WebNavigationPolicy default_policy,
286 bool is_redirect);
287 virtual blink::WebHistoryItem historyItemForNewChildFrame( 282 virtual blink::WebHistoryItem historyItemForNewChildFrame(
288 blink::WebFrame* frame); 283 blink::WebFrame* frame);
289 virtual void willSendSubmitEvent(blink::WebLocalFrame* frame, 284 virtual void willSendSubmitEvent(blink::WebLocalFrame* frame,
290 const blink::WebFormElement& form); 285 const blink::WebFormElement& form);
291 virtual void willSubmitForm(blink::WebLocalFrame* frame, 286 virtual void willSubmitForm(blink::WebLocalFrame* frame,
292 const blink::WebFormElement& form); 287 const blink::WebFormElement& form);
293 virtual void didCreateDataSource(blink::WebLocalFrame* frame, 288 virtual void didCreateDataSource(blink::WebLocalFrame* frame,
294 blink::WebDataSource* datasource); 289 blink::WebDataSource* datasource);
295 virtual void didStartProvisionalLoad(blink::WebLocalFrame* frame); 290 virtual void didStartProvisionalLoad(blink::WebLocalFrame* frame,
291 bool is_transition_navigation);
296 virtual void didReceiveServerRedirectForProvisionalLoad( 292 virtual void didReceiveServerRedirectForProvisionalLoad(
297 blink::WebLocalFrame* frame); 293 blink::WebLocalFrame* frame);
298 virtual void didFailProvisionalLoad( 294 virtual void didFailProvisionalLoad(
299 blink::WebLocalFrame* frame, 295 blink::WebLocalFrame* frame,
300 const blink::WebURLError& error); 296 const blink::WebURLError& error);
301 virtual void didCommitProvisionalLoad( 297 virtual void didCommitProvisionalLoad(
302 blink::WebLocalFrame* frame, 298 blink::WebLocalFrame* frame,
303 const blink::WebHistoryItem& item, 299 const blink::WebHistoryItem& item,
304 blink::WebHistoryCommitType commit_type); 300 blink::WebHistoryCommitType commit_type);
305 virtual void didClearWindowObject(blink::WebLocalFrame* frame); 301 virtual void didClearWindowObject(blink::WebLocalFrame* frame);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 void OnReload(bool ignore_cache); 473 void OnReload(bool ignore_cache);
478 void OnTextSurroundingSelectionRequest(size_t max_length); 474 void OnTextSurroundingSelectionRequest(size_t max_length);
479 void OnAddStyleSheetByURL(const std::string& url); 475 void OnAddStyleSheetByURL(const std::string& url);
480 #if defined(OS_MACOSX) 476 #if defined(OS_MACOSX)
481 void OnCopyToFindPboard(); 477 void OnCopyToFindPboard();
482 #endif 478 #endif
483 479
484 // Virtual since overridden by WebTestProxy for layout tests. 480 // Virtual since overridden by WebTestProxy for layout tests.
485 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( 481 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
486 RenderFrame* render_frame, 482 RenderFrame* render_frame,
487 blink::WebFrame* frame, 483 const NavigationPolicyInfo& info);
488 blink::WebDataSource::ExtraData* extraData,
489 const blink::WebURLRequest& request,
490 blink::WebNavigationType type,
491 blink::WebNavigationPolicy default_policy,
492 bool is_redirect);
493 void OpenURL(blink::WebFrame* frame, 484 void OpenURL(blink::WebFrame* frame,
494 const GURL& url, 485 const GURL& url,
495 const Referrer& referrer, 486 const Referrer& referrer,
496 blink::WebNavigationPolicy policy); 487 blink::WebNavigationPolicy policy);
497 488
498 // Update current main frame's encoding and send it to browser window. 489 // Update current main frame's encoding and send it to browser window.
499 // Since we want to let users see the right encoding info from menu 490 // Since we want to let users see the right encoding info from menu
500 // before finishing loading, we call the UpdateEncoding in 491 // before finishing loading, we call the UpdateEncoding in
501 // a) function:DidCommitLoadForFrame. When this function is called, 492 // a) function:DidCommitLoadForFrame. When this function is called,
502 // that means we have got first data. In here we try to get encoding 493 // that means we have got first data. In here we try to get encoding
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 ScreenOrientationDispatcher* screen_orientation_dispatcher_; 657 ScreenOrientationDispatcher* screen_orientation_dispatcher_;
667 658
668 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 659 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
669 660
670 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 661 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
671 }; 662 };
672 663
673 } // namespace content 664 } // namespace content
674 665
675 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 666 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698