| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FRAME_CHROME_PROTOCOL_H_ | 5 #ifndef CHROME_FRAME_CHROME_PROTOCOL_H_ |
| 6 #define CHROME_FRAME_CHROME_PROTOCOL_H_ | 6 #define CHROME_FRAME_CHROME_PROTOCOL_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 |
| 11 #include "chrome_frame/chrome_tab.h" |
| 10 #include "chrome_frame/resource.h" | 12 #include "chrome_frame/resource.h" |
| 11 #include "grit/chrome_frame_resources.h" | 13 #include "grit/chrome_frame_resources.h" |
| 12 | 14 |
| 13 // Include without path to make GYP build see it. | |
| 14 #include "chrome_tab.h" // NOLINT | |
| 15 | |
| 16 // ChromeProtocol | 15 // ChromeProtocol |
| 17 class ATL_NO_VTABLE ChromeProtocol | 16 class ATL_NO_VTABLE ChromeProtocol |
| 18 : public CComObjectRootEx<CComSingleThreadModel>, | 17 : public CComObjectRootEx<CComSingleThreadModel>, |
| 19 public CComCoClass<ChromeProtocol, &CLSID_ChromeProtocol>, | 18 public CComCoClass<ChromeProtocol, &CLSID_ChromeProtocol>, |
| 20 public IInternetProtocol { | 19 public IInternetProtocol { |
| 21 public: | 20 public: |
| 22 ChromeProtocol() { | 21 ChromeProtocol() { |
| 23 } | 22 } |
| 24 DECLARE_REGISTRY_RESOURCEID(IDR_CHROMEPROTOCOL) | 23 DECLARE_REGISTRY_RESOURCEID(IDR_CHROMEPROTOCOL) |
| 25 | 24 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 54 ULONG buffer_size_in_bytes, | 53 ULONG buffer_size_in_bytes, |
| 55 ULONG* bytes_read); | 54 ULONG* bytes_read); |
| 56 STDMETHOD(Seek)(LARGE_INTEGER move_by, | 55 STDMETHOD(Seek)(LARGE_INTEGER move_by, |
| 57 DWORD origin, | 56 DWORD origin, |
| 58 ULARGE_INTEGER* new_position); | 57 ULARGE_INTEGER* new_position); |
| 59 STDMETHOD(LockRequest)(DWORD options); | 58 STDMETHOD(LockRequest)(DWORD options); |
| 60 STDMETHOD(UnlockRequest)(void); | 59 STDMETHOD(UnlockRequest)(void); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 #endif // CHROME_FRAME_CHROME_PROTOCOL_H_ | 62 #endif // CHROME_FRAME_CHROME_PROTOCOL_H_ |
| OLD | NEW |