diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 19:48:36 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 19:48:36 +0000 |
commit | 3eb07da6e868e49e28cb5a6d8a57037f2c45a20e (patch) | |
tree | b9e05e275e38b176b1473e0f9e66075706ca238b /chrome_frame/chrome_frame_npapi.h | |
parent | 55750b57e30ecc9f3657d1ebd08853e232ba4e23 (diff) | |
download | chromium_src-3eb07da6e868e49e28cb5a6d8a57037f2c45a20e.zip chromium_src-3eb07da6e868e49e28cb5a6d8a57037f2c45a20e.tar.gz chromium_src-3eb07da6e868e49e28cb5a6d8a57037f2c45a20e.tar.bz2 |
TEST=new tests added.
Review URL: http://codereview.chromium.org/545093
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_npapi.h')
-rw-r--r-- | chrome_frame/chrome_frame_npapi.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/chrome_frame/chrome_frame_npapi.h b/chrome_frame/chrome_frame_npapi.h index 45b4028..c5e17cb 100644 --- a/chrome_frame/chrome_frame_npapi.h +++ b/chrome_frame/chrome_frame_npapi.h @@ -65,6 +65,9 @@ class ChromeFrameNPAPI void UrlNotify(const char* url, NPReason reason, void* notify_data); bool NewStream(NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stream_type); + int32 WriteReady(NPStream* stream); + int32 Write(NPStream* stream, int32 offset, int32 len, void* buffer); + NPError DestroyStream(NPStream* stream, NPReason reason); void Print(NPPrint* print_info); @@ -99,10 +102,6 @@ class ChromeFrameNPAPI // which represents our plugin class. static ChromeFrameNPAPI* ChromeFrameInstanceFromNPObject(void* object); - // Return a UrlRequest instance associated with the given instance and - // stream combination. - static NPAPIUrlRequest* ValidateRequest(NPP instance, void* notify_data); - BEGIN_MSG_MAP(ChromeFrameNPAPI) MESSAGE_HANDLER(WM_SETFOCUS, OnSetFocus) CHAIN_MSG_MAP(Base) @@ -137,12 +136,6 @@ END_MSG_MAP() const std::string& message, const std::string& origin, const std::string& target); - virtual void OnRequestStart(int tab_handle, int request_id, - const IPC::AutomationURLRequest& request); - virtual void OnRequestRead(int tab_handle, int request_id, - int bytes_to_read); - virtual void OnRequestEnd(int tab_handle, int request_id, - const URLRequestStatus& status); virtual void OnSetCookieAsync(int tab_handle, const GURL& url, const std::string& cookie); @@ -283,9 +276,6 @@ END_MSG_MAP() // Host function to compile-time asserts over members of this class. static void CompileAsserts(); - // Get request from the stream notify data - NPAPIUrlRequest* RequestFromNotifyData(void* notify_data) const; - static LRESULT CALLBACK DropKillFocusHook(int code, WPARAM wparam, LPARAM lparam); // NO_LINT @@ -342,6 +332,8 @@ END_MSG_MAP() // The value of src property keeping the current URL. std::string src_; + // Used to fetch network resources when host network stack is in use. + NPAPIUrlRequestManager url_fetcher_; }; #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ |