OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_REMOTING_DIRECTORY_ADD_REQUEST_H_ | 5 #ifndef CHROME_BROWSER_REMOTING_DIRECTORY_ADD_REQUEST_H_ |
6 #define CHROME_BROWSER_REMOTING_DIRECTORY_ADD_REQUEST_H_ | 6 #define CHROME_BROWSER_REMOTING_DIRECTORY_ADD_REQUEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback_old.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/common/remoting/chromoting_host_info.h" | 12 #include "chrome/common/remoting/chromoting_host_info.h" |
13 #include "chrome/common/net/url_fetcher.h" | 13 #include "chrome/common/net/url_fetcher.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 | 15 |
16 namespace remoting { | 16 namespace remoting { |
17 | 17 |
18 // A class implements REST API insert call for the Chromoting directory service. | 18 // A class implements REST API insert call for the Chromoting directory service. |
19 class DirectoryAddRequest : public URLFetcher::Delegate { | 19 class DirectoryAddRequest : public URLFetcher::Delegate { |
20 public: | 20 public: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 net::URLRequestContextGetter* getter_; | 66 net::URLRequestContextGetter* getter_; |
67 scoped_ptr<DoneCallback> done_callback_; | 67 scoped_ptr<DoneCallback> done_callback_; |
68 scoped_ptr<URLFetcher> fetcher_; | 68 scoped_ptr<URLFetcher> fetcher_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(DirectoryAddRequest); | 70 DISALLOW_COPY_AND_ASSIGN(DirectoryAddRequest); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace remoting | 73 } // namespace remoting |
74 | 74 |
75 #endif // CHROME_BROWSER_REMOTING_DIRECTORY_ADD_REQUEST_H_ | 75 #endif // CHROME_BROWSER_REMOTING_DIRECTORY_ADD_REQUEST_H_ |
OLD | NEW |