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

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: 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;
miu 2014/12/05 23:46:48 style: Place the ampersand next to the type (here
251 bool IsCrashed() const override; 251 bool IsCrashed() const override;
252 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 252 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
253 base::TerminationStatus GetCrashedStatus() const override; 253 base::TerminationStatus GetCrashedStatus() const override;
254 bool IsBeingDestroyed() const override; 254 bool IsBeingDestroyed() const override;
255 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 255 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
256 base::TimeTicks GetLastActiveTime() const override; 256 base::TimeTicks GetLastActiveTime() const override;
257 void WasShown() override; 257 void WasShown() override;
258 void WasHidden() override; 258 void WasHidden() override;
259 bool NeedToFireBeforeUnload() override; 259 bool NeedToFireBeforeUnload() override;
260 void DispatchBeforeUnload(bool for_cross_site_transition) override; 260 void DispatchBeforeUnload(bool for_cross_site_transition) override;
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 // Called once when the last frame on the page has stopped loading. 887 // Called once when the last frame on the page has stopped loading.
888 void DidStopLoading(RenderFrameHost* render_frame_host); 888 void DidStopLoading(RenderFrameHost* render_frame_host);
889 889
890 // Misc non-view stuff ------------------------------------------------------- 890 // Misc non-view stuff -------------------------------------------------------
891 891
892 // Helper functions for sending notifications. 892 // Helper functions for sending notifications.
893 void NotifyViewSwapped(RenderViewHost* old_host, RenderViewHost* new_host); 893 void NotifyViewSwapped(RenderViewHost* old_host, RenderViewHost* new_host);
894 void NotifyFrameSwapped(RenderFrameHost* old_host, RenderFrameHost* new_host); 894 void NotifyFrameSwapped(RenderFrameHost* old_host, RenderFrameHost* new_host);
895 void NotifyDisconnected(); 895 void NotifyDisconnected();
896 896
897 void NotifyAudibleStateChanged(bool is_audible);
898 void NotifyMutedStateChanged(bool is_muted, const std::string& cause);
899
897 void SetEncoding(const std::string& encoding); 900 void SetEncoding(const std::string& encoding);
898 901
899 // TODO(creis): This should take in a FrameTreeNode to know which node's 902 // TODO(creis): This should take in a FrameTreeNode to know which node's
900 // render manager to return. For now, we just return the root's. 903 // render manager to return. For now, we just return the root's.
901 RenderFrameHostManager* GetRenderManager() const; 904 RenderFrameHostManager* GetRenderManager() const;
902 905
903 RenderViewHostImpl* GetRenderViewHostImpl(); 906 RenderViewHostImpl* GetRenderViewHostImpl();
904 907
905 // Removes browser plugin embedder if there is one. 908 // Removes browser plugin embedder if there is one.
906 void RemoveBrowserPluginEmbedder(); 909 void RemoveBrowserPluginEmbedder();
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1236 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1234 1237
1235 bool virtual_keyboard_requested_; 1238 bool virtual_keyboard_requested_;
1236 1239
1237 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1240 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1238 }; 1241 };
1239 1242
1240 } // namespace content 1243 } // namespace content
1241 1244
1242 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1245 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698