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

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

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Structure and Tests Created 8 years, 1 month 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 17 matching lines...) Expand all
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #include "webkit/glue/resource_type.h" 29 #include "webkit/glue/resource_type.h"
30 30
31 #if defined(OS_WIN) 31 #if defined(OS_WIN)
32 #include "base/win/scoped_handle.h" 32 #include "base/win/scoped_handle.h"
33 #endif 33 #endif
34 34
35 struct BrowserPluginHostMsg_CreateGuest_Params; 35 struct BrowserPluginHostMsg_CreateGuest_Params;
36 struct BrowserPluginHostMsg_ResizeGuest_Params; 36 struct BrowserPluginHostMsg_ResizeGuest_Params;
37 struct ViewMsg_PostMessage_Params; 37 struct ViewMsg_PostMessage_Params;
38 struct ViewMsg_PostRequest_Params;
38 39
39 namespace webkit_glue { 40 namespace webkit_glue {
40 struct WebIntentData; 41 struct WebIntentData;
41 struct WebIntentServiceData; 42 struct WebIntentServiceData;
42 } 43 }
43 44
44 namespace content { 45 namespace content {
45 class BrowserPluginEmbedder; 46 class BrowserPluginEmbedder;
46 class BrowserPluginGuest; 47 class BrowserPluginGuest;
47 class ColorChooser; 48 class ColorChooser;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 virtual bool FocusLocationBarByDefault() OVERRIDE; 455 virtual bool FocusLocationBarByDefault() OVERRIDE;
455 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; 456 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE;
456 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; 457 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE;
457 458
458 // NotificationObserver ------------------------------------------------------ 459 // NotificationObserver ------------------------------------------------------
459 460
460 virtual void Observe(int type, 461 virtual void Observe(int type,
461 const NotificationSource& source, 462 const NotificationSource& source,
462 const NotificationDetails& details) OVERRIDE; 463 const NotificationDetails& details) OVERRIDE;
463 464
465 // For Cross-Navigation Post Submisstion
466 virtual void RequestOpenPostURL(
467 RenderViewHost* rvh,
468 const GURL& url,
469 const Referrer& referrer,
470 WindowOpenDisposition disposition,
471 int64 source_frame_id,
472 const ViewMsg_PostRequest_Params& request) OVERRIDE;
473
474 virtual void RequestTransferPostURL(
475 const GURL& url,
476 const content::Referrer& referrer,
477 WindowOpenDisposition disposition,
478 int64 source_frame_id,
479 const content::GlobalRequestID& transferred_global_request_id,
480 const ViewMsg_PostRequest_Params& request) OVERRIDE;
464 481
465 private: 482 private:
466 friend class NavigationControllerImpl; 483 friend class NavigationControllerImpl;
467 friend class WebContentsObserver; 484 friend class WebContentsObserver;
468 friend class WebContents; // To implement factory methods. 485 friend class WebContents; // To implement factory methods.
469 486
470 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); 487 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials);
471 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); 488 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle);
472 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, 489 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest,
473 CrossSiteCantPreemptAfterUnload); 490 CrossSiteCantPreemptAfterUnload);
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 // All live RenderWidgetHostImpls that are created by this object and may 870 // All live RenderWidgetHostImpls that are created by this object and may
854 // outlive it. 871 // outlive it.
855 std::set<RenderWidgetHostImpl*> created_widgets_; 872 std::set<RenderWidgetHostImpl*> created_widgets_;
856 873
857 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 874 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
858 }; 875 };
859 876
860 } // namespace content 877 } // namespace content
861 878
862 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 879 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698