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

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

Issue 644463003: [Cast, Android] Don't hold the wake lock if the video is playing remotely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore remote players altogether Created 6 years, 2 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | 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_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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 void OnBrowserPluginMessage(const IPC::Message& message); 820 void OnBrowserPluginMessage(const IPC::Message& message);
821 void OnDidDownloadImage(int id, 821 void OnDidDownloadImage(int id,
822 int http_status_code, 822 int http_status_code,
823 const GURL& image_url, 823 const GURL& image_url,
824 const std::vector<SkBitmap>& bitmaps, 824 const std::vector<SkBitmap>& bitmaps,
825 const std::vector<gfx::Size>& original_bitmap_sizes); 825 const std::vector<gfx::Size>& original_bitmap_sizes);
826 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); 826 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates);
827 void OnFirstVisuallyNonEmptyPaint(); 827 void OnFirstVisuallyNonEmptyPaint();
828 void OnMediaPlayingNotification(int64 player_cookie, 828 void OnMediaPlayingNotification(int64 player_cookie,
829 bool has_video, 829 bool has_video,
830 bool has_audio); 830 bool has_audio,
831 bool is_remote);
831 void OnMediaPausedNotification(int64 player_cookie); 832 void OnMediaPausedNotification(int64 player_cookie);
832 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view, 833 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view,
833 const base::string16& main_text, 834 const base::string16& main_text,
834 const base::string16& sub_text); 835 const base::string16& sub_text);
835 void OnHideValidationMessage(); 836 void OnHideValidationMessage();
836 void OnMoveValidationMessage(const gfx::Rect& anchor_in_root_view); 837 void OnMoveValidationMessage(const gfx::Rect& anchor_in_root_view);
837 838
838 // Called by derived classes to indicate that we're no longer waiting for a 839 // Called by derived classes to indicate that we're no longer waiting for a
839 // response. This won't actually update the throbber, but it will get picked 840 // response. This won't actually update the throbber, but it will get picked
840 // up at the next animation step if the throbber is going. 841 // up at the next animation step if the throbber is going.
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 scoped_ptr<WebContentsAudioMuter> audio_muter_; 1243 scoped_ptr<WebContentsAudioMuter> audio_muter_;
1243 1244
1244 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1245 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1245 1246
1246 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1247 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1247 }; 1248 };
1248 1249
1249 } // namespace content 1250 } // namespace content
1250 1251
1251 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1252 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698