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

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

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: correct some trivial #includes 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 // Returns true if this WebContents was opened by another WebContents, even 660 // Returns true if this WebContents was opened by another WebContents, even
655 // if the opener was suppressed. In contrast to HasOpener/GetOpener, the 661 // if the opener was suppressed. In contrast to HasOpener/GetOpener, the
656 // original opener doesn't reflect window.opener which can be suppressed or 662 // original opener doesn't reflect window.opener which can be suppressed or
657 // updated. 663 // updated.
658 virtual bool HasOriginalOpener() const = 0; 664 virtual bool HasOriginalOpener() const = 0;
659 665
660 // Returns the original opener if HasOriginalOpener() is true, or nullptr 666 // Returns the original opener if HasOriginalOpener() is true, or nullptr
661 // otherwise. 667 // otherwise.
662 virtual WebContents* GetOriginalOpener() const = 0; 668 virtual WebContents* GetOriginalOpener() const = 0;
663 669
670 // Returns the WakeLockContext accociated with this WebContents.
671 virtual device::mojom::WakeLockContext* GetWakeLockContext() = 0;
672
664 typedef base::Callback<void( 673 typedef base::Callback<void(
665 int, /* id */ 674 int, /* id */
666 int, /* HTTP status code */ 675 int, /* HTTP status code */
667 const GURL&, /* image_url */ 676 const GURL&, /* image_url */
668 const std::vector<SkBitmap>&, /* bitmaps */ 677 const std::vector<SkBitmap>&, /* bitmaps */
669 /* The sizes in pixel of the bitmaps before they were resized due to the 678 /* The sizes in pixel of the bitmaps before they were resized due to the
670 max bitmap size passed to DownloadImage(). Each entry in the bitmaps 679 max bitmap size passed to DownloadImage(). Each entry in the bitmaps
671 vector corresponds to an entry in the sizes vector. If a bitmap was 680 vector corresponds to an entry in the sizes vector. If a bitmap was
672 resized, there should be a single returned bitmap. */ 681 resized, there should be a single returned bitmap. */
673 const std::vector<gfx::Size>&)> 682 const std::vector<gfx::Size>&)>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 803
795 private: 804 private:
796 // This interface should only be implemented inside content. 805 // This interface should only be implemented inside content.
797 friend class WebContentsImpl; 806 friend class WebContentsImpl;
798 WebContents() {} 807 WebContents() {}
799 }; 808 };
800 809
801 } // namespace content 810 } // namespace content
802 811
803 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 812 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698