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

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

Issue 1432143002: Track where WebContents are created in order to better understand issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Same as Patch Set 3 Created 5 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/debug/stack_trace.h"
12 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
13 #include "base/process/kill.h" 14 #include "base/process/kill.h"
14 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
15 #include "base/supports_user_data.h" 16 #include "base/supports_user_data.h"
16 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
17 #include "content/public/browser/invalidate_type.h" 18 #include "content/public/browser/invalidate_type.h"
18 #include "content/public/browser/navigation_controller.h" 19 #include "content/public/browser/navigation_controller.h"
19 #include "content/public/browser/page_navigator.h" 20 #include "content/public/browser/page_navigator.h"
20 #include "content/public/browser/save_page_type.h" 21 #include "content/public/browser/save_page_type.h"
21 #include "content/public/browser/web_ui.h" 22 #include "content/public/browser/web_ui.h"
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 // Requests the renderer to exit fullscreen. 671 // Requests the renderer to exit fullscreen.
671 virtual void ExitFullscreen() = 0; 672 virtual void ExitFullscreen() = 0;
672 673
673 // Unblocks requests from renderer for a newly created window. This is 674 // Unblocks requests from renderer for a newly created window. This is
674 // used in showCreatedWindow() or sometimes later in cases where 675 // used in showCreatedWindow() or sometimes later in cases where
675 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests 676 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests
676 // should not yet be resumed. Then the client is responsible for calling this 677 // should not yet be resumed. Then the client is responsible for calling this
677 // as soon as they are ready. 678 // as soon as they are ready.
678 virtual void ResumeLoadingCreatedWebContents() = 0; 679 virtual void ResumeLoadingCreatedWebContents() = 0;
679 680
681 // Temporary to track down http://crbug.com/538612
682 virtual base::debug::StackTrace stack_trace() = 0;
683
680 #if defined(OS_ANDROID) 684 #if defined(OS_ANDROID)
681 // Requests to resume the current media session. 685 // Requests to resume the current media session.
682 virtual void ResumeMediaSession() = 0; 686 virtual void ResumeMediaSession() = 0;
683 // Requests to suspend the current media session. 687 // Requests to suspend the current media session.
684 virtual void SuspendMediaSession() = 0; 688 virtual void SuspendMediaSession() = 0;
685 // Requests to stop the current media session. 689 // Requests to stop the current media session.
686 virtual void StopMediaSession() = 0; 690 virtual void StopMediaSession() = 0;
687 #if !defined(USE_AURA) 691 #if !defined(USE_AURA)
688 CONTENT_EXPORT static WebContents* FromJavaWebContents( 692 CONTENT_EXPORT static WebContents* FromJavaWebContents(
689 jobject jweb_contents_android); 693 jobject jweb_contents_android);
(...skipping 10 matching lines...) Expand all
700 704
701 private: 705 private:
702 // This interface should only be implemented inside content. 706 // This interface should only be implemented inside content.
703 friend class WebContentsImpl; 707 friend class WebContentsImpl;
704 WebContents() {} 708 WebContents() {}
705 }; 709 };
706 710
707 } // namespace content 711 } // namespace content
708 712
709 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 713 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698