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