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

Side by Side Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 1098763003: Send origin updates to frame proxies when a frame navigates to new origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Charlie's nits Created 5 years, 8 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
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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "content/browser/renderer_host/render_view_host_delegate.h" 14 #include "content/browser/renderer_host/render_view_host_delegate.h"
15 #include "content/browser/site_instance_impl.h" 15 #include "content/browser/site_instance_impl.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/browser/global_request_id.h" 17 #include "content/public/browser/global_request_id.h"
18 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
20 #include "content/public/common/referrer.h" 20 #include "content/public/common/referrer.h"
21 #include "ui/base/page_transition_types.h" 21 #include "ui/base/page_transition_types.h"
22 #include "url/origin.h"
22 23
23 namespace content { 24 namespace content {
24 class BrowserContext; 25 class BrowserContext;
25 class CrossProcessFrameConnector; 26 class CrossProcessFrameConnector;
26 class CrossSiteTransferringRequest; 27 class CrossSiteTransferringRequest;
27 class FrameTreeNode; 28 class FrameTreeNode;
28 class InterstitialPageImpl; 29 class InterstitialPageImpl;
29 class NavigationControllerImpl; 30 class NavigationControllerImpl;
30 class NavigationEntry; 31 class NavigationEntry;
31 class NavigationEntryImpl; 32 class NavigationEntryImpl;
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 411
411 // Notification methods to tell this RenderFrameHostManager that the frame it 412 // Notification methods to tell this RenderFrameHostManager that the frame it
412 // is responsible for has started or stopped loading a document. 413 // is responsible for has started or stopped loading a document.
413 void OnDidStartLoading(); 414 void OnDidStartLoading();
414 void OnDidStopLoading(); 415 void OnDidStopLoading();
415 416
416 // Send updated frame name to all frame proxies when the frame changes its 417 // Send updated frame name to all frame proxies when the frame changes its
417 // window.name property. 418 // window.name property.
418 void OnDidUpdateName(const std::string& name); 419 void OnDidUpdateName(const std::string& name);
419 420
421 // Send updated origin to all frame proxies when the frame navigates to a new
422 // origin.
423 void OnDidUpdateOrigin(const url::Origin& origin);
424
420 void EnsureRenderViewInitialized(FrameTreeNode* source, 425 void EnsureRenderViewInitialized(FrameTreeNode* source,
421 RenderViewHostImpl* render_view_host, 426 RenderViewHostImpl* render_view_host,
422 SiteInstance* instance); 427 SiteInstance* instance);
423 428
424 private: 429 private:
425 friend class FrameTreeVisualizer; 430 friend class FrameTreeVisualizer;
426 friend class NavigatorTestWithBrowserSideNavigation; 431 friend class NavigatorTestWithBrowserSideNavigation;
427 friend class RenderFrameHostManagerTest; 432 friend class RenderFrameHostManagerTest;
428 friend class TestWebContents; 433 friend class TestWebContents;
429 434
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 bool should_reuse_web_ui_; 742 bool should_reuse_web_ui_;
738 743
739 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 744 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
740 745
741 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 746 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
742 }; 747 };
743 748
744 } // namespace content 749 } // namespace content
745 750
746 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 751 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698