OLD | NEW |
---|---|
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 virtual const GURL& GetVisibleURL() const OVERRIDE; | 283 virtual const GURL& GetVisibleURL() const OVERRIDE; |
284 virtual const GURL& GetLastCommittedURL() const OVERRIDE; | 284 virtual const GURL& GetLastCommittedURL() const OVERRIDE; |
285 virtual WebContents* GetAsWebContents() OVERRIDE; | 285 virtual WebContents* GetAsWebContents() OVERRIDE; |
286 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 286 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
287 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 287 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
288 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; | 288 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; |
289 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 289 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
290 base::TerminationStatus status, | 290 base::TerminationStatus status, |
291 int error_code) OVERRIDE; | 291 int error_code) OVERRIDE; |
292 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; | 292 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; |
293 virtual void DidStartProvisionalLoadForFrame( | |
294 RenderViewHost* render_view_host, | |
295 int64 frame_id, | |
296 int64 parent_frame_id, | |
297 bool main_frame, | |
298 const GURL& url) OVERRIDE; | |
299 virtual void DidRedirectProvisionalLoad( | 293 virtual void DidRedirectProvisionalLoad( |
300 RenderViewHost* render_view_host, | 294 RenderViewHost* render_view_host, |
301 int32 page_id, | 295 int32 page_id, |
302 const GURL& source_url, | 296 const GURL& source_url, |
303 const GURL& target_url) OVERRIDE; | 297 const GURL& target_url) OVERRIDE; |
304 virtual void DidFailProvisionalLoadWithError( | 298 virtual void DidFailProvisionalLoadWithError( |
305 RenderViewHost* render_view_host, | 299 RenderViewHost* render_view_host, |
306 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) | 300 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) |
307 OVERRIDE; | 301 OVERRIDE; |
308 virtual void DidGetResourceResponseStart( | 302 virtual void DidGetResourceResponseStart( |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
420 const gfx::Rect& initial_pos) OVERRIDE; | 414 const gfx::Rect& initial_pos) OVERRIDE; |
421 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; | 415 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; |
422 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; | 416 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; |
423 virtual void RequestMediaAccessPermission( | 417 virtual void RequestMediaAccessPermission( |
424 const MediaStreamRequest& request, | 418 const MediaStreamRequest& request, |
425 const MediaResponseCallback& callback) OVERRIDE; | 419 const MediaResponseCallback& callback) OVERRIDE; |
426 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 420 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
427 SiteInstance* instance) OVERRIDE; | 421 SiteInstance* instance) OVERRIDE; |
428 virtual FrameTree* GetFrameTree() OVERRIDE; | 422 virtual FrameTree* GetFrameTree() OVERRIDE; |
429 | 423 |
424 // NavigatorDelegate --------------------------------------------------------- | |
425 | |
426 virtual void DidStartProvisionalLoad( | |
427 RenderFrameHostImpl* render_frame_host, | |
428 int64 frame_id, | |
429 int64 parent_frame_id, | |
430 bool is_main_frame, | |
431 const GURL& validated_url, | |
432 bool is_error_page, | |
433 bool is_iframe_srcdoc) OVERRIDE; | |
434 | |
435 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) | |
awong
2013/11/22 02:35:51
Break after the opening (? IIRC, the rule is to n
nasko
2013/11/22 15:19:30
This was formatted by clang-format, but I've chang
| |
436 OVERRIDE; | |
437 | |
430 // RenderWidgetHostDelegate -------------------------------------------------- | 438 // RenderWidgetHostDelegate -------------------------------------------------- |
431 | 439 |
432 virtual void RenderWidgetDeleted( | 440 virtual void RenderWidgetDeleted( |
433 RenderWidgetHostImpl* render_widget_host) OVERRIDE; | 441 RenderWidgetHostImpl* render_widget_host) OVERRIDE; |
434 virtual bool PreHandleKeyboardEvent( | 442 virtual bool PreHandleKeyboardEvent( |
435 const NativeWebKeyboardEvent& event, | 443 const NativeWebKeyboardEvent& event, |
436 bool* is_keyboard_shortcut) OVERRIDE; | 444 bool* is_keyboard_shortcut) OVERRIDE; |
437 virtual void HandleKeyboardEvent( | 445 virtual void HandleKeyboardEvent( |
438 const NativeWebKeyboardEvent& event) OVERRIDE; | 446 const NativeWebKeyboardEvent& event) OVERRIDE; |
439 virtual bool PreHandleWheelEvent( | 447 virtual bool PreHandleWheelEvent( |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
985 // Maps the ids of pending image downloads to their callbacks | 993 // Maps the ids of pending image downloads to their callbacks |
986 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 994 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
987 ImageDownloadMap image_download_map_; | 995 ImageDownloadMap image_download_map_; |
988 | 996 |
989 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 997 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
990 }; | 998 }; |
991 | 999 |
992 } // namespace content | 1000 } // namespace content |
993 | 1001 |
994 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1002 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |