| 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 CONTENT_SHELL_IPC_ECHO_H_ | 5 #ifndef CONTENT_SHELL_IPC_ECHO_H_ |
| 6 #define CONTENT_SHELL_IPC_ECHO_H_ | 6 #define CONTENT_SHELL_IPC_ECHO_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 IPCEcho(blink::WebDocument document, IPC::Sender* sender, int routing_id); | 34 IPCEcho(blink::WebDocument document, IPC::Sender* sender, int routing_id); |
| 35 ~IPCEcho(); | 35 ~IPCEcho(); |
| 36 | 36 |
| 37 void RequestEcho(int id, int size); | 37 void RequestEcho(int id, int size); |
| 38 void DidRespondEcho(int id, int size); | 38 void DidRespondEcho(int id, int size); |
| 39 void Install(blink::WebFrame*); | 39 void Install(blink::WebFrame*); |
| 40 | 40 |
| 41 int last_echo_id() const { return last_echo_id_; } | 41 int last_echo_id() const { return last_echo_id_; } |
| 42 int last_echo_size() const { return last_echo_size_; } | 42 int last_echo_size() const { return last_echo_size_; } |
| 43 | 43 |
| 44 base::WeakPtrFactory<IPCEcho> weak_factory_; | |
| 45 blink::WebDocument document_; | 44 blink::WebDocument document_; |
| 46 IPC::Sender* sender_; | 45 IPC::Sender* sender_; |
| 47 int routing_id_; | 46 int routing_id_; |
| 48 int last_echo_id_; | 47 int last_echo_id_; |
| 49 int last_echo_size_; | 48 int last_echo_size_; |
| 49 |
| 50 base::WeakPtrFactory<IPCEcho> weak_factory_; |
| 51 |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace content | 54 } // namespace content |
| 53 | 55 |
| 54 #endif // CONTENT_SHELL_IPC_ECHO_DISPATCHER_H_ | 56 #endif // CONTENT_SHELL_IPC_ECHO_DISPATCHER_H_ |
| OLD | NEW |