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

Unified Diff: chrome/service/remoting/remoting_directory_service.h

Issue 6036001: Move directory code from chrome/service to chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merges Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/net/http_return.h ('k') | chrome/service/remoting/remoting_directory_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/remoting/remoting_directory_service.h
diff --git a/chrome/service/remoting/remoting_directory_service.h b/chrome/service/remoting/remoting_directory_service.h
deleted file mode 100644
index 2c9fc0f22855de8b014cee805f783bb734983587..0000000000000000000000000000000000000000
--- a/chrome/service/remoting/remoting_directory_service.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2010 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 CHROME_SERVICE_REMOTING_REMOTING_DIRECTORY_SERVICE_H_
-#define CHROME_SERVICE_REMOTING_REMOTING_DIRECTORY_SERVICE_H_
-
-#include <string>
-
-#include "base/scoped_ptr.h"
-#include "chrome/common/net/url_fetcher.h"
-#include "googleurl/src/gurl.h"
-
-namespace remoting {
-class HostKeyPair;
-} // namespace remoting
-
-// A class to provide access to the remoting directory service.
-// TODO(hclam): Should implement this in Javascript.
-class RemotingDirectoryService : public URLFetcher::Delegate {
- public:
- // Client to receive events from the directory service.
- class Client {
- public:
- virtual ~Client() {}
-
- // Called when a remoting host was added.
- virtual void OnRemotingHostAdded() {}
-
- // Called when the last operation has failed.
- virtual void OnRemotingDirectoryError() {}
- };
-
- explicit RemotingDirectoryService(Client* client);
- ~RemotingDirectoryService();
-
- // Add this computer as host. Use the token for authentication.
- // TODO(hclam): Need more information for this method call.
- void AddHost(const std::string& token);
-
- // Cancel the last requested operation.
- void CancelRequest();
-
- // URLFetcher::Delegate implementation.
- virtual void OnURLFetchComplete(const URLFetcher* source,
- const GURL& url,
- const URLRequestStatus& status,
- int response_code,
- const ResponseCookies& cookies,
- const std::string& data);
-
- const std::string& host_id() const { return host_id_; }
- const std::string& host_name() const { return host_name_; }
- remoting::HostKeyPair* host_key_pair() const {
- return host_key_pair_.get();
- }
-
- private:
- Client* client_;
- scoped_ptr<URLFetcher> fetcher_;
-
- // Host key generated during host registration.
- scoped_ptr<remoting::HostKeyPair> host_key_pair_;
-
- // Host info used for registration.
- std::string host_id_;
- std::string host_name_;
-
- DISALLOW_COPY_AND_ASSIGN(RemotingDirectoryService);
-};
-
-#endif // CHROME_SERVICE_REMOTING_REMOTING_DIRECTORY_SERVICE_H_
« no previous file with comments | « chrome/common/net/http_return.h ('k') | chrome/service/remoting/remoting_directory_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698