OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
11 #include "content/browser/devtools/devtools_io_context.h" | 13 #include "content/browser/devtools/devtools_io_context.h" |
12 #include "content/browser/devtools/protocol/devtools_protocol_delegate.h" | 14 #include "content/browser/devtools/protocol/devtools_protocol_delegate.h" |
13 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
14 #include "content/common/devtools_messages.h" | 16 #include "content/common/devtools_messages.h" |
15 #include "content/public/browser/devtools_agent_host.h" | 17 #include "content/public/browser/devtools_agent_host.h" |
16 | 18 |
17 namespace IPC { | 19 namespace IPC { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 ~DevToolsMessageChunkProcessor(); | 82 ~DevToolsMessageChunkProcessor(); |
81 | 83 |
82 std::string state_cookie() const { return state_cookie_; } | 84 std::string state_cookie() const { return state_cookie_; } |
83 void set_state_cookie(const std::string& cookie) { state_cookie_ = cookie; } | 85 void set_state_cookie(const std::string& cookie) { state_cookie_ = cookie; } |
84 int last_call_id() const { return last_call_id_; } | 86 int last_call_id() const { return last_call_id_; } |
85 void ProcessChunkedMessageFromAgent(const DevToolsMessageChunk& chunk); | 87 void ProcessChunkedMessageFromAgent(const DevToolsMessageChunk& chunk); |
86 | 88 |
87 private: | 89 private: |
88 SendMessageCallback callback_; | 90 SendMessageCallback callback_; |
89 std::string message_buffer_; | 91 std::string message_buffer_; |
90 uint32 message_buffer_size_; | 92 uint32_t message_buffer_size_; |
91 std::string state_cookie_; | 93 std::string state_cookie_; |
92 int last_call_id_; | 94 int last_call_id_; |
93 }; | 95 }; |
94 | 96 |
95 } // namespace content | 97 } // namespace content |
96 | 98 |
97 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 99 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
OLD | NEW |