| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DEVTOOLS_DEVICE_WEBRTC_SEND_COMMAND_REQUEST_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_SEND_COMMAND_REQUEST_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_SEND_COMMAND_REQUEST_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_SEND_COMMAND_REQUEST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "chrome/browser/local_discovery/gcd_api_flow.h" | 9 #include "chrome/browser/local_discovery/gcd_api_flow.h" |
| 9 | 10 |
| 10 class SendCommandRequest : public local_discovery::GCDApiFlowRequest { | 11 class SendCommandRequest : public local_discovery::GCDApiFlowRequest { |
| 11 public: | 12 public: |
| 12 class Delegate { | 13 class Delegate { |
| 13 public: | 14 public: |
| 14 // It's safe to destroy SendCommandRequest in these methods. | 15 // It's safe to destroy SendCommandRequest in these methods. |
| 15 virtual void OnCommandSucceeded(const base::DictionaryValue& value) = 0; | 16 virtual void OnCommandSucceeded(const base::DictionaryValue& value) = 0; |
| 16 virtual void OnCommandFailed() = 0; | 17 virtual void OnCommandFailed() = 0; |
| 17 | 18 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 GURL GetURL() override; | 31 GURL GetURL() override; |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 std::string upload_data_; | 34 std::string upload_data_; |
| 34 Delegate* const delegate_; | 35 Delegate* const delegate_; |
| 35 | 36 |
| 36 DISALLOW_COPY_AND_ASSIGN(SendCommandRequest); | 37 DISALLOW_COPY_AND_ASSIGN(SendCommandRequest); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_SEND_COMMAND_REQUEST_H_ | 40 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_SEND_COMMAND_REQUEST_H_ |
| OLD | NEW |