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

Unified Diff: chrome/browser/media/router/presentation_service_delegate_base_impl.h

Issue 2477573002: [Presentation API] (3rd) (1-UA) Split PresentationServiceDelegateImpl(PSDImpl) (Closed)
Patch Set: rebase Created 4 years, 1 month 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
Index: chrome/browser/media/router/presentation_service_delegate_base_impl.h
diff --git a/chrome/browser/media/router/presentation_service_delegate_base_impl.h b/chrome/browser/media/router/presentation_service_delegate_base_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5f7cf01f1040b62599ade87b841d1577813abad
--- /dev/null
+++ b/chrome/browser/media/router/presentation_service_delegate_base_impl.h
@@ -0,0 +1,36 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
mark a. foltz 2016/11/15 23:41:46 Update copyright in this and other files
zhaobin 2016/11/16 18:02:41 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_BASE_IMPL_H_
+#define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_BASE_IMPL_H_
+
+#include <map>
+
+#include "chrome/browser/media/router/render_frame_host_id.h"
+#include "content/public/browser/presentation_service_delegate.h"
+
+namespace media_router {
+
+class PresentationServiceDelegateBaseImpl
+ : public content::PresentationServiceDelegateBase {
+ public:
+ PresentationServiceDelegateBaseImpl();
+ virtual ~PresentationServiceDelegateBaseImpl();
+
+ // content::PresentationServiceDelegateBase implementation.
+ void AddObserver(
+ int render_process_id,
+ int render_frame_id,
+ content::PresentationServiceDelegateBase::Observer* observer) override;
+ void RemoveObserver(int render_process_id, int render_frame_id) override;
+
+ private:
+ std::map<RenderFrameHostId,
+ content::PresentationServiceDelegateBase::Observer*>
+ observers_;
+};
+
+} // namespace media_router
+
+#endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_BASE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698