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

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

Issue 1698933004: Make MediaSession a runtime-enabled feature on Desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with flag Created 4 years, 10 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_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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 void Find(int request_id, 375 void Find(int request_id,
376 const base::string16& search_text, 376 const base::string16& search_text,
377 const blink::WebFindOptions& options) override; 377 const blink::WebFindOptions& options) override;
378 void StopFinding(StopFindAction action) override; 378 void StopFinding(StopFindAction action) override;
379 void InsertCSS(const std::string& css) override; 379 void InsertCSS(const std::string& css) override;
380 bool WasRecentlyAudible() override; 380 bool WasRecentlyAudible() override;
381 void GetManifest(const GetManifestCallback& callback) override; 381 void GetManifest(const GetManifestCallback& callback) override;
382 void HasManifest(const HasManifestCallback& callback) override; 382 void HasManifest(const HasManifestCallback& callback) override;
383 void ExitFullscreen(bool will_cause_resize) override; 383 void ExitFullscreen(bool will_cause_resize) override;
384 void ResumeLoadingCreatedWebContents() override; 384 void ResumeLoadingCreatedWebContents() override;
385 #if defined(OS_ANDROID)
386 void OnMediaSessionStateChanged(); 385 void OnMediaSessionStateChanged();
387 void ResumeMediaSession() override; 386 void ResumeMediaSession() override;
388 void SuspendMediaSession() override; 387 void SuspendMediaSession() override;
389 void StopMediaSession() override; 388 void StopMediaSession() override;
390 389
390 #if defined(OS_ANDROID)
391 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; 391 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
392 virtual WebContentsAndroid* GetWebContentsAndroid(); 392 virtual WebContentsAndroid* GetWebContentsAndroid();
393 #elif defined(OS_MACOSX) 393 #elif defined(OS_MACOSX)
394 void SetAllowOtherViews(bool allow) override; 394 void SetAllowOtherViews(bool allow) override;
395 bool GetAllowOtherViews() override; 395 bool GetAllowOtherViews() override;
396 #endif 396 #endif
397 397
398 // Implementation of PageNavigator. 398 // Implementation of PageNavigator.
399 WebContents* OpenURL(const OpenURLParams& params) override; 399 WebContents* OpenURL(const OpenURLParams& params) override;
400 400
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 // Adds/removes a callback called on creation of each new WebContents. 1334 // Adds/removes a callback called on creation of each new WebContents.
1335 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1335 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1336 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1336 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1337 1337
1338 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1338 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1339 }; 1339 };
1340 1340
1341 } // namespace content 1341 } // namespace content
1342 1342
1343 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1343 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698