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

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

Issue 757033005: Make tab audible and muted states and cause available for an extension API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve naming/capitalization for muted toggle strings; remove audible/muted event-listener code fr… Created 6 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
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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 const base::string16& GetLoadStateHost() const override; 240 const base::string16& GetLoadStateHost() const override;
241 uint64 GetUploadSize() const override; 241 uint64 GetUploadSize() const override;
242 uint64 GetUploadPosition() const override; 242 uint64 GetUploadPosition() const override;
243 std::set<GURL> GetSitesInTab() const override; 243 std::set<GURL> GetSitesInTab() const override;
244 const std::string& GetEncoding() const override; 244 const std::string& GetEncoding() const override;
245 bool DisplayedInsecureContent() const override; 245 bool DisplayedInsecureContent() const override;
246 void IncrementCapturerCount(const gfx::Size& capture_size) override; 246 void IncrementCapturerCount(const gfx::Size& capture_size) override;
247 void DecrementCapturerCount() override; 247 void DecrementCapturerCount() override;
248 int GetCapturerCount() const override; 248 int GetCapturerCount() const override;
249 bool IsAudioMuted() const override; 249 bool IsAudioMuted() const override;
250 void SetAudioMuted(bool mute) override; 250 void SetAudioMuted(bool muted, const std::string& cause) override;
251 const std::string& GetAudioMutedCause() const override;
251 bool IsCrashed() const override; 252 bool IsCrashed() const override;
252 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 253 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
253 base::TerminationStatus GetCrashedStatus() const override; 254 base::TerminationStatus GetCrashedStatus() const override;
254 bool IsBeingDestroyed() const override; 255 bool IsBeingDestroyed() const override;
255 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 256 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
256 base::TimeTicks GetLastActiveTime() const override; 257 base::TimeTicks GetLastActiveTime() const override;
257 void WasShown() override; 258 void WasShown() override;
258 void WasHidden() override; 259 void WasHidden() override;
259 bool NeedToFireBeforeUnload() override; 260 bool NeedToFireBeforeUnload() override;
260 void DispatchBeforeUnload(bool for_cross_site_transition) override; 261 void DispatchBeforeUnload(bool for_cross_site_transition) override;
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 std::string canonical_encoding_; 1070 std::string canonical_encoding_;
1070 1071
1071 // True if this is a secure page which displayed insecure content. 1072 // True if this is a secure page which displayed insecure content.
1072 bool displayed_insecure_content_; 1073 bool displayed_insecure_content_;
1073 1074
1074 // Whether the initial empty page has been accessed by another page, making it 1075 // Whether the initial empty page has been accessed by another page, making it
1075 // unsafe to show the pending URL. Usually false unless another window tries 1076 // unsafe to show the pending URL. Usually false unless another window tries
1076 // to modify the blank page. Always false after the first commit. 1077 // to modify the blank page. Always false after the first commit.
1077 bool has_accessed_initial_document_; 1078 bool has_accessed_initial_document_;
1078 1079
1080 // Source (initial, user, capture, extensionid) for the tab's muted state
1081 std::string mutedToggleCause_;
miu 2014/12/20 03:42:38 style (underscores, not camel case): This should b
1082
1079 // Data for misc internal state ---------------------------------------------- 1083 // Data for misc internal state ----------------------------------------------
1080 1084
1081 // When > 0, the WebContents is currently being captured (e.g., for 1085 // When > 0, the WebContents is currently being captured (e.g., for
1082 // screenshots or mirroring); and the underlying RenderWidgetHost should not 1086 // screenshots or mirroring); and the underlying RenderWidgetHost should not
1083 // be told it is hidden. 1087 // be told it is hidden.
1084 int capturer_count_; 1088 int capturer_count_;
1085 1089
1086 // Tracks whether RWHV should be visible once capturer_count_ becomes zero. 1090 // Tracks whether RWHV should be visible once capturer_count_ becomes zero.
1087 bool should_normally_be_visible_; 1091 bool should_normally_be_visible_;
1088 1092
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1237 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1234 1238
1235 bool virtual_keyboard_requested_; 1239 bool virtual_keyboard_requested_;
1236 1240
1237 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1241 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1238 }; 1242 };
1239 1243
1240 } // namespace content 1244 } // namespace content
1241 1245
1242 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1246 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/media/capture/web_contents_audio_input_stream.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698