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/browser/extensions/api/messaging/native_message_process_host.h" | 5 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_pump_win.h" | 10 #include "base/message_pump_win.h" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "content/public/browser/browser_thread.h" | |
14 | 13 |
15 namespace extensions { | 14 namespace extensions { |
16 | 15 |
17 void NativeMessageProcessHost::OnIOCompleted( | 16 void NativeMessageProcessHost::OnIOCompleted( |
18 MessageLoopForIO::IOContext* context, | 17 MessageLoopForIO::IOContext* context, |
19 DWORD bytes_transfered, | 18 DWORD bytes_transfered, |
20 DWORD error) { | 19 DWORD error) { |
21 NOTREACHED(); | 20 NOTREACHED(); |
22 } | 21 } |
23 | 22 |
24 void NativeMessageProcessHost::InitIO() { | 23 void NativeMessageProcessHost::InitIO() { |
25 NOTREACHED(); | 24 NOTREACHED(); |
26 } | 25 } |
27 | 26 |
28 bool NativeMessageProcessHost::WriteData(FileHandle file, | 27 bool NativeMessageProcessHost::WriteData(FileHandle file, |
29 const char* data, | 28 const char* data, |
30 size_t bytes_to_write) { | 29 size_t bytes_to_write) { |
31 NOTREACHED(); | 30 NOTREACHED(); |
32 return false; | 31 return false; |
33 } | 32 } |
34 | 33 |
35 bool NativeMessageProcessHost::ReadData(FileHandle file, | 34 bool NativeMessageProcessHost::ReadData(FileHandle file, |
36 char* data, | 35 char* data, |
37 size_t bytes_to_read) { | 36 size_t bytes_to_read) { |
38 NOTREACHED(); | 37 NOTREACHED(); |
39 return false; | 38 return false; |
40 } | 39 } |
41 | 40 |
42 } // namespace extensions | 41 } // namespace extensions |
OLD | NEW |