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

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

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: code rebase 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 26 matching lines...) Expand all
37 #endif 37 #endif
38 38
39 namespace base { 39 namespace base {
40 class TimeTicks; 40 class TimeTicks;
41 } 41 }
42 42
43 namespace blink { 43 namespace blink {
44 struct WebFindOptions; 44 struct WebFindOptions;
45 } 45 }
46 46
47 namespace device {
48 namespace mojom {
49 class WakeLockContext;
50 }
51 }
52
47 namespace net { 53 namespace net {
48 struct LoadStateWithParam; 54 struct LoadStateWithParam;
49 } 55 }
50 56
51 namespace service_manager { 57 namespace service_manager {
52 class InterfaceProvider; 58 class InterfaceProvider;
53 } 59 }
54 60
55 namespace content { 61 namespace content {
56 62
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 // Returns true if this WebContents was opened by another WebContents, even 673 // Returns true if this WebContents was opened by another WebContents, even
668 // if the opener was suppressed. In contrast to HasOpener/GetOpener, the 674 // if the opener was suppressed. In contrast to HasOpener/GetOpener, the
669 // original opener doesn't reflect window.opener which can be suppressed or 675 // original opener doesn't reflect window.opener which can be suppressed or
670 // updated. 676 // updated.
671 virtual bool HasOriginalOpener() const = 0; 677 virtual bool HasOriginalOpener() const = 0;
672 678
673 // Returns the original opener if HasOriginalOpener() is true, or nullptr 679 // Returns the original opener if HasOriginalOpener() is true, or nullptr
674 // otherwise. 680 // otherwise.
675 virtual WebContents* GetOriginalOpener() const = 0; 681 virtual WebContents* GetOriginalOpener() const = 0;
676 682
683 // Returns the WakeLockContext accociated with this WebContents.
684 virtual device::mojom::WakeLockContext* GetWakeLockContext() = 0;
685
677 typedef base::Callback<void( 686 typedef base::Callback<void(
678 int, /* id */ 687 int, /* id */
679 int, /* HTTP status code */ 688 int, /* HTTP status code */
680 const GURL&, /* image_url */ 689 const GURL&, /* image_url */
681 const std::vector<SkBitmap>&, /* bitmaps */ 690 const std::vector<SkBitmap>&, /* bitmaps */
682 /* The sizes in pixel of the bitmaps before they were resized due to the 691 /* The sizes in pixel of the bitmaps before they were resized due to the
683 max bitmap size passed to DownloadImage(). Each entry in the bitmaps 692 max bitmap size passed to DownloadImage(). Each entry in the bitmaps
684 vector corresponds to an entry in the sizes vector. If a bitmap was 693 vector corresponds to an entry in the sizes vector. If a bitmap was
685 resized, there should be a single returned bitmap. */ 694 resized, there should be a single returned bitmap. */
686 const std::vector<gfx::Size>&)> 695 const std::vector<gfx::Size>&)>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 816
808 private: 817 private:
809 // This interface should only be implemented inside content. 818 // This interface should only be implemented inside content.
810 friend class WebContentsImpl; 819 friend class WebContentsImpl;
811 WebContents() {} 820 WebContents() {}
812 }; 821 };
813 822
814 } // namespace content 823 } // namespace content
815 824
816 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 825 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698