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

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

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: error fix, non-frame client. 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_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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 #endif 36 #endif
37 37
38 namespace base { 38 namespace base {
39 class TimeTicks; 39 class TimeTicks;
40 } 40 }
41 41
42 namespace blink { 42 namespace blink {
43 struct WebFindOptions; 43 struct WebFindOptions;
44 } 44 }
45 45
46 namespace device {
47 namespace mojom {
48 class WakeLockContext;
49 }
50 }
51
46 namespace net { 52 namespace net {
47 struct LoadStateWithParam; 53 struct LoadStateWithParam;
48 } 54 }
49 55
50 namespace service_manager { 56 namespace service_manager {
51 class InterfaceProvider; 57 class InterfaceProvider;
52 } 58 }
53 59
54 namespace content { 60 namespace content {
55 61
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 // Returns true if this WebContents was opened by another WebContents, even 653 // Returns true if this WebContents was opened by another WebContents, even
648 // if the opener was suppressed. In contrast to HasOpener/GetOpener, the 654 // if the opener was suppressed. In contrast to HasOpener/GetOpener, the
649 // original opener doesn't reflect window.opener which can be suppressed or 655 // original opener doesn't reflect window.opener which can be suppressed or
650 // updated. 656 // updated.
651 virtual bool HasOriginalOpener() const = 0; 657 virtual bool HasOriginalOpener() const = 0;
652 658
653 // Returns the original opener if HasOriginalOpener() is true, or nullptr 659 // Returns the original opener if HasOriginalOpener() is true, or nullptr
654 // otherwise. 660 // otherwise.
655 virtual WebContents* GetOriginalOpener() const = 0; 661 virtual WebContents* GetOriginalOpener() const = 0;
656 662
663 // Returns the WakeLockContext accociated with this WebContents.
664 virtual device::mojom::WakeLockContext* GetWakeLockContext() = 0;
blundell 2017/05/02 11:27:43 nit: Nothing in this CL is using this method, righ
ke.he 2017/05/04 11:54:13 It is used by WebContentsImpl::GetRendererWakeLock
665
657 typedef base::Callback<void( 666 typedef base::Callback<void(
658 int, /* id */ 667 int, /* id */
659 int, /* HTTP status code */ 668 int, /* HTTP status code */
660 const GURL&, /* image_url */ 669 const GURL&, /* image_url */
661 const std::vector<SkBitmap>&, /* bitmaps */ 670 const std::vector<SkBitmap>&, /* bitmaps */
662 /* The sizes in pixel of the bitmaps before they were resized due to the 671 /* The sizes in pixel of the bitmaps before they were resized due to the
663 max bitmap size passed to DownloadImage(). Each entry in the bitmaps 672 max bitmap size passed to DownloadImage(). Each entry in the bitmaps
664 vector corresponds to an entry in the sizes vector. If a bitmap was 673 vector corresponds to an entry in the sizes vector. If a bitmap was
665 resized, there should be a single returned bitmap. */ 674 resized, there should be a single returned bitmap. */
666 const std::vector<gfx::Size>&)> 675 const std::vector<gfx::Size>&)>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 796
788 private: 797 private:
789 // This interface should only be implemented inside content. 798 // This interface should only be implemented inside content.
790 friend class WebContentsImpl; 799 friend class WebContentsImpl;
791 WebContents() {} 800 WebContents() {}
792 }; 801 };
793 802
794 } // namespace content 803 } // namespace content
795 804
796 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 805 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698