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

Unified Diff: chromecast/media/cdm/browser_cdm_cast.h

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/shell_handler_win.h ('k') | chromecast/media/cdm/browser_cdm_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cdm/browser_cdm_cast.h
diff --git a/chromecast/media/cdm/browser_cdm_cast.h b/chromecast/media/cdm/browser_cdm_cast.h
index 28fb9848b0fff791d4dcf543c1abceed3a641356..1f2d8e76b48a78706f700fb7a2f288be436fd4a0 100644
--- a/chromecast/media/cdm/browser_cdm_cast.h
+++ b/chromecast/media/cdm/browser_cdm_cast.h
@@ -9,6 +9,7 @@
#include <map>
#include <string>
+#include <vector>
#include "base/callback.h"
#include "base/macros.h"
@@ -67,7 +68,7 @@ class BrowserCdmCast : public ::media::BrowserCdm {
protected:
void OnSessionMessage(const std::string& session_id,
- const std::vector<uint8>& message,
+ const std::vector<uint8_t>& message,
const GURL& destination_url);
void OnSessionClosed(const std::string& session_id);
void OnSessionKeysChange(const std::string& session_id,
@@ -76,19 +77,6 @@ class BrowserCdmCast : public ::media::BrowserCdm {
private:
friend class BrowserCdmCastUi;
- // Helper methods for forwarding calls to methods that take raw pointers.
- void SetServerCertificateHelper(
- const std::vector<uint8>& certificate_data,
- scoped_ptr<::media::SimpleCdmPromise> promise);
- void CreateSessionAndGenerateRequestHelper(
- ::media::MediaKeys::SessionType session_type,
- ::media::EmeInitDataType init_data_type,
- const std::vector<uint8>& init_data,
- scoped_ptr<::media::NewSessionCdmPromise> promise);
- void UpdateSessionHelper(const std::string& session_id,
- const std::vector<uint8>& response,
- scoped_ptr<::media::SimpleCdmPromise> promise);
-
::media::SessionMessageCB session_message_cb_;
::media::SessionClosedCB session_closed_cb_;
::media::LegacySessionErrorCB legacy_session_error_cb_;
@@ -122,21 +110,18 @@ class BrowserCdmCastUi : public ::media::BrowserCdm {
private:
// ::media::MediaKeys implementation:
void SetServerCertificate(
- const uint8* certificate_data,
- int certificate_data_length,
+ const std::vector<uint8_t>& certificate,
scoped_ptr<::media::SimpleCdmPromise> promise) override;
void CreateSessionAndGenerateRequest(
::media::MediaKeys::SessionType session_type,
::media::EmeInitDataType init_data_type,
- const uint8* init_data,
- int init_data_length,
+ const std::vector<uint8_t>& init_data,
scoped_ptr<::media::NewSessionCdmPromise> promise) override;
void LoadSession(::media::MediaKeys::SessionType session_type,
const std::string& session_id,
scoped_ptr<::media::NewSessionCdmPromise> promise) override;
void UpdateSession(const std::string& session_id,
- const uint8* response,
- int response_length,
+ const std::vector<uint8_t>& response,
scoped_ptr<::media::SimpleCdmPromise> promise) override;
void CloseSession(const std::string& session_id,
scoped_ptr<::media::SimpleCdmPromise> promise) override;
« no previous file with comments | « chrome/utility/shell_handler_win.h ('k') | chromecast/media/cdm/browser_cdm_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698