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

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

Issue 2877333004: UMA for measuring how often 2 or more tabs script the same background contents.
Patch Set: No PostDelayedTask and checking if opener is a hosted app Created 3 years, 7 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 (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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 device::mojom::WakeLockContext* GetWakeLockServiceContext() override; 509 device::mojom::WakeLockContext* GetWakeLockServiceContext() override;
510 void EnterFullscreenMode(const GURL& origin) override; 510 void EnterFullscreenMode(const GURL& origin) override;
511 void ExitFullscreenMode(bool will_cause_resize) override; 511 void ExitFullscreenMode(bool will_cause_resize) override;
512 bool ShouldRouteMessageEvent( 512 bool ShouldRouteMessageEvent(
513 RenderFrameHost* target_rfh, 513 RenderFrameHost* target_rfh,
514 SiteInstance* source_site_instance) const override; 514 SiteInstance* source_site_instance) const override;
515 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 515 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
516 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 516 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
517 const GURL& url) override; 517 const GURL& url) override;
518 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 518 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
519 void DidChangeOpener(FrameTreeNode* node, FrameTreeNode* opener) override;
519 void OnFocusedElementChangedInFrame( 520 void OnFocusedElementChangedInFrame(
520 RenderFrameHostImpl* frame, 521 RenderFrameHostImpl* frame,
521 const gfx::Rect& bounds_in_root_view) override; 522 const gfx::Rect& bounds_in_root_view) override;
522 void CreateNewWindow( 523 void CreateNewWindow(
523 RenderFrameHost* opener, 524 RenderFrameHost* opener,
524 int32_t render_view_route_id, 525 int32_t render_view_route_id,
525 int32_t main_frame_route_id, 526 int32_t main_frame_route_id,
526 int32_t main_frame_widget_route_id, 527 int32_t main_frame_widget_route_id,
527 const mojom::CreateNewWindowParams& params, 528 const mojom::CreateNewWindowParams& params,
528 SessionStorageNamespace* session_storage_namespace) override; 529 SessionStorageNamespace* session_storage_namespace) override;
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 // Adds/removes a callback called on creation of each new WebContents. 1591 // Adds/removes a callback called on creation of each new WebContents.
1591 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1592 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1592 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1593 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1593 1594
1594 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1595 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1595 }; 1596 };
1596 1597
1597 } // namespace content 1598 } // namespace content
1598 1599
1599 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1600 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.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