Chromium Code Reviews

Side by Side Diff: chrome/renderer/render_view.h

Issue 1747015: Add support for new webkit capability allowing us to update (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 327 matching lines...)
338 WebKit::WebFrame* frame, const WebKit::WebURLError& error); 338 WebKit::WebFrame* frame, const WebKit::WebURLError& error);
339 virtual void didReceiveDocumentData( 339 virtual void didReceiveDocumentData(
340 WebKit::WebFrame* frame, const char* data, size_t length, 340 WebKit::WebFrame* frame, const char* data, size_t length,
341 bool& prevent_default); 341 bool& prevent_default);
342 virtual void didCommitProvisionalLoad( 342 virtual void didCommitProvisionalLoad(
343 WebKit::WebFrame* frame, bool is_new_navigation); 343 WebKit::WebFrame* frame, bool is_new_navigation);
344 virtual void didClearWindowObject(WebKit::WebFrame* frame); 344 virtual void didClearWindowObject(WebKit::WebFrame* frame);
345 virtual void didCreateDocumentElement(WebKit::WebFrame* frame); 345 virtual void didCreateDocumentElement(WebKit::WebFrame* frame);
346 virtual void didReceiveTitle( 346 virtual void didReceiveTitle(
347 WebKit::WebFrame* frame, const WebKit::WebString& title); 347 WebKit::WebFrame* frame, const WebKit::WebString& title);
348 virtual void didChangeIcons(WebKit::WebFrame*);
348 virtual void didFinishDocumentLoad(WebKit::WebFrame* frame); 349 virtual void didFinishDocumentLoad(WebKit::WebFrame* frame);
349 virtual void didHandleOnloadEvents(WebKit::WebFrame* frame); 350 virtual void didHandleOnloadEvents(WebKit::WebFrame* frame);
350 virtual void didFailLoad( 351 virtual void didFailLoad(
351 WebKit::WebFrame* frame, const WebKit::WebURLError& error); 352 WebKit::WebFrame* frame, const WebKit::WebURLError& error);
352 virtual void didFinishLoad(WebKit::WebFrame* frame); 353 virtual void didFinishLoad(WebKit::WebFrame* frame);
353 virtual void didNavigateWithinPage( 354 virtual void didNavigateWithinPage(
354 WebKit::WebFrame* frame, bool is_new_navigation); 355 WebKit::WebFrame* frame, bool is_new_navigation);
355 virtual void didUpdateCurrentHistoryItem(WebKit::WebFrame* frame); 356 virtual void didUpdateCurrentHistoryItem(WebKit::WebFrame* frame);
356 virtual void assignIdentifierToRequest( 357 virtual void assignIdentifierToRequest(
357 WebKit::WebFrame* frame, unsigned identifier, 358 WebKit::WebFrame* frame, unsigned identifier,
(...skipping 203 matching lines...)
561 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, 562 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case,
562 // CompleteInit must be called later with the true ID. 563 // CompleteInit must be called later with the true ID.
563 void Init(gfx::NativeViewId parent, 564 void Init(gfx::NativeViewId parent,
564 int32 opener_id, 565 int32 opener_id,
565 const RendererPreferences& renderer_prefs, 566 const RendererPreferences& renderer_prefs,
566 SharedRenderViewCounter* counter, 567 SharedRenderViewCounter* counter,
567 int32 routing_id); 568 int32 routing_id);
568 569
569 void UpdateURL(WebKit::WebFrame* frame); 570 void UpdateURL(WebKit::WebFrame* frame);
570 void UpdateTitle(WebKit::WebFrame* frame, const string16& title); 571 void UpdateTitle(WebKit::WebFrame* frame, const string16& title);
572 void UpdateIconURL(WebKit::WebFrame* frame, const GURL& icon_url);
571 void UpdateSessionHistory(WebKit::WebFrame* frame); 573 void UpdateSessionHistory(WebKit::WebFrame* frame);
572 574
573 // Update current main frame's encoding and send it to browser window. 575 // Update current main frame's encoding and send it to browser window.
574 // Since we want to let users see the right encoding info from menu 576 // Since we want to let users see the right encoding info from menu
575 // before finishing loading, we call the UpdateEncoding in 577 // before finishing loading, we call the UpdateEncoding in
576 // a) function:DidCommitLoadForFrame. When this function is called, 578 // a) function:DidCommitLoadForFrame. When this function is called,
577 // that means we have got first data. In here we try to get encoding 579 // that means we have got first data. In here we try to get encoding
578 // of page if it has been specified in http header. 580 // of page if it has been specified in http header.
579 // b) function:DidReceiveTitle. When this function is called, 581 // b) function:DidReceiveTitle. When this function is called,
580 // that means we have got specified title. Because in most of webpages, 582 // that means we have got specified title. Because in most of webpages,
(...skipping 621 matching lines...)
1202 1204
1203 // Site isolation metrics flags. These are per-page-load counts, reset to 0 1205 // Site isolation metrics flags. These are per-page-load counts, reset to 0
1204 // in OnClosePage. 1206 // in OnClosePage.
1205 int cross_origin_access_count_; 1207 int cross_origin_access_count_;
1206 int same_origin_access_count_; 1208 int same_origin_access_count_;
1207 1209
1208 DISALLOW_COPY_AND_ASSIGN(RenderView); 1210 DISALLOW_COPY_AND_ASSIGN(RenderView);
1209 }; 1211 };
1210 1212
1211 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1213 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine