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

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

Issue 92873004: Prevent the browser process from creating duplicate RenderViewHosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. Created 7 years 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 (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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 RenderViewHost* render_view_host, 399 RenderViewHost* render_view_host,
400 const FileChooserParams& params) OVERRIDE; 400 const FileChooserParams& params) OVERRIDE;
401 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE; 401 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE;
402 virtual bool IsFullscreenForCurrentTab() const OVERRIDE; 402 virtual bool IsFullscreenForCurrentTab() const OVERRIDE;
403 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; 403 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
404 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE; 404 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE;
405 virtual void RequestToLockMouse(bool user_gesture, 405 virtual void RequestToLockMouse(bool user_gesture,
406 bool last_unlocked_by_target) OVERRIDE; 406 bool last_unlocked_by_target) OVERRIDE;
407 virtual void LostMouseLock() OVERRIDE; 407 virtual void LostMouseLock() OVERRIDE;
408 virtual void CreateNewWindow( 408 virtual void CreateNewWindow(
409 int render_process_id,
409 int route_id, 410 int route_id,
410 int main_frame_route_id, 411 int main_frame_route_id,
411 const ViewHostMsg_CreateWindow_Params& params, 412 const ViewHostMsg_CreateWindow_Params& params,
412 SessionStorageNamespace* session_storage_namespace) OVERRIDE; 413 SessionStorageNamespace* session_storage_namespace) OVERRIDE;
413 virtual void CreateNewWidget(int route_id, 414 virtual void CreateNewWidget(int route_id,
414 blink::WebPopupType popup_type) OVERRIDE; 415 blink::WebPopupType popup_type) OVERRIDE;
415 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; 416 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
416 virtual void ShowCreatedWindow(int route_id, 417 virtual void ShowCreatedWindow(int route_id,
417 WindowOpenDisposition disposition, 418 WindowOpenDisposition disposition,
418 const gfx::Rect& initial_pos, 419 const gfx::Rect& initial_pos,
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 // Maps the ids of pending image downloads to their callbacks 989 // Maps the ids of pending image downloads to their callbacks
989 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 990 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
990 ImageDownloadMap image_download_map_; 991 ImageDownloadMap image_download_map_;
991 992
992 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 993 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
993 }; 994 };
994 995
995 } // namespace content 996 } // namespace content
996 997
997 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 998 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/security_exploit_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698