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 #include "chrome/renderer/chrome_mock_render_thread.h" | 5 #include "chrome/renderer/chrome_mock_render_thread.h" |
6 | 6 |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 #if defined(ENABLE_EXTENSIONS) | 10 #if defined(ENABLE_EXTENSIONS) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return false; | 44 return false; |
45 #endif | 45 #endif |
46 } | 46 } |
47 | 47 |
48 #if defined(ENABLE_EXTENSIONS) | 48 #if defined(ENABLE_EXTENSIONS) |
49 void ChromeMockRenderThread::OnOpenChannelToExtension( | 49 void ChromeMockRenderThread::OnOpenChannelToExtension( |
50 int routing_id, | 50 int routing_id, |
51 const ExtensionMsg_ExternalConnectionInfo& info, | 51 const ExtensionMsg_ExternalConnectionInfo& info, |
52 const std::string& channel_name, | 52 const std::string& channel_name, |
53 bool include_tls_channel_id, | 53 bool include_tls_channel_id, |
54 int* port_id) { | 54 int request_id) { |
55 *port_id = 0; | 55 Send(new ExtensionMsg_AssignPortId(routing_id, 0, request_id)); |
56 } | 56 } |
57 #endif | 57 #endif |
OLD | NEW |