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

Unified Diff: extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.h

Issue 895783002: Remove the Copresence Endpoints API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.h
diff --git a/extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.h b/extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.h
deleted file mode 100644
index bfadb3bed8b7a478e7f6375b9ecd63163f3592ab..0000000000000000000000000000000000000000
--- a/extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef EXTENSIONS_BROWSER_API_COPRESENCE_ENDPOINTS_COPRESENCE_ENDPOINTS_RESOURCES_H_
-#define EXTENSIONS_BROWSER_API_COPRESENCE_ENDPOINTS_COPRESENCE_ENDPOINTS_RESOURCES_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "extensions/browser/api/api_resource.h"
-#include "extensions/browser/api/api_resource_manager.h"
-
-namespace copresence_endpoints {
-class CopresenceEndpoint;
-}
-
-namespace extensions {
-
-class CopresenceEndpointResource : public ApiResource {
- public:
- CopresenceEndpointResource(
- const std::string& owner_extension_id,
- scoped_ptr<copresence_endpoints::CopresenceEndpoint> endpoint);
- ~CopresenceEndpointResource() override;
-
- copresence_endpoints::CopresenceEndpoint* endpoint();
-
- std::string& packet() { return packet_; }
-
- static const content::BrowserThread::ID kThreadId =
- content::BrowserThread::UI;
-
- private:
- friend class ApiResourceManager<CopresenceEndpointResource>;
- static const char* service_name() {
- return "CopresenceEndpointResourceManager";
- }
-
- scoped_ptr<copresence_endpoints::CopresenceEndpoint> endpoint_;
- std::string packet_;
-
- DISALLOW_COPY_AND_ASSIGN(CopresenceEndpointResource);
-};
-
-} // namespace extensions
-
-#endif // EXTENSIONS_BROWSER_API_COPRESENCE_ENDPOINTS_COPRESENCE_ENDPOINTS_RESOURCES_H_

Powered by Google App Engine
This is Rietveld 408576698