| 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_FRAME_NPAPI_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_NPAPI_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlwin.h> | 9 #include <atlwin.h> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "chrome_frame/chrome_frame_automation.h" | 12 #include "chrome_frame/chrome_frame_automation.h" |
| 13 #include "chrome_frame/chrome_frame_plugin.h" | 13 #include "chrome_frame/chrome_frame_plugin.h" |
| 14 #include "chrome_frame/np_browser_functions.h" | 14 #include "chrome_frame/np_browser_functions.h" |
| 15 #include "chrome_frame/np_event_listener.h" | 15 #include "chrome_frame/np_event_listener.h" |
| 16 #include "chrome_frame/np_proxy_service.h" | 16 #include "chrome_frame/np_proxy_service.h" |
| 17 #include "chrome_frame/npapi_url_request.h" | 17 #include "chrome_frame/npapi_url_request.h" |
| 18 | 18 |
| 19 class MessageLoop; | 19 class MessageLoop; |
| 20 class nsICookieService; | 20 class nsICookieService; |
| 21 class nsIURI; | 21 class nsIURI; |
| 22 | 22 |
| 23 // ChromeFrameNPAPI: Implementation of the NPAPI plugin, which is responsible | 23 // ChromeFrameNPAPI: Implementation of the NPAPI plugin, which is responsible |
| 24 // for hosting a chrome frame, i.e. an iframe like widget which hosts the the | 24 // for hosting a chrome frame, i.e. an iframe like widget which hosts the the |
| 25 // chrome window. This object delegates to Chrome.exe (via the Chrome | 25 // chrome window. This object delegates to Chrome.exe (via the Chrome |
| 26 // IPC-based automation mechanism) for the actual rendering. | 26 // IPC-based automation mechanism) for the actual rendering. |
| 27 class ChromeFrameNPAPI | 27 class ChromeFrameNPAPI |
| 28 : public CWindowImpl<ChromeFrameNPAPI>, | 28 : public CWindowImpl<ChromeFrameNPAPI>, |
| 29 public ChromeFramePlugin<ChromeFrameNPAPI>, | 29 public ChromeFramePlugin<ChromeFrameNPAPI>, |
| 30 public NpEventDelegate { | 30 public NpEventDelegate, |
| 31 public NavigationConstraintsImpl { |
| 31 public: | 32 public: |
| 32 typedef ChromeFramePlugin<ChromeFrameNPAPI> Base; | 33 typedef ChromeFramePlugin<ChromeFrameNPAPI> Base; |
| 33 | 34 |
| 34 // NPObject structure which is exposed by us. | 35 // NPObject structure which is exposed by us. |
| 35 struct ChromeFrameNPObject : public NPObject { | 36 struct ChromeFrameNPObject : public NPObject { |
| 36 NPP npp; | 37 NPP npp; |
| 37 ChromeFrameNPAPI* chrome_frame_plugin_instance; | 38 ChromeFrameNPAPI* chrome_frame_plugin_instance; |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 typedef enum { | 41 typedef enum { |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 // The value of src property keeping the current URL. | 347 // The value of src property keeping the current URL. |
| 347 std::string src_; | 348 std::string src_; |
| 348 // Used to fetch network resources when host network stack is in use. | 349 // Used to fetch network resources when host network stack is in use. |
| 349 NPAPIUrlRequestManager url_fetcher_; | 350 NPAPIUrlRequestManager url_fetcher_; |
| 350 | 351 |
| 351 // Set if we receive a navigation request before initializing Chrome. | 352 // Set if we receive a navigation request before initializing Chrome. |
| 352 bool navigate_after_initialization_; | 353 bool navigate_after_initialization_; |
| 353 }; | 354 }; |
| 354 | 355 |
| 355 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ | 356 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |
| OLD | NEW |