Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9642)

Unified Diff: chrome_frame/chrome_frame_npapi.h

Issue 545093: Refactor host network (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/chrome_frame_npapi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_npapi.h
===================================================================
--- chrome_frame/chrome_frame_npapi.h (revision 37418)
+++ chrome_frame/chrome_frame_npapi.h (working copy)
@@ -65,6 +65,9 @@
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 @@
// 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 @@
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 @@
// 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 @@
// 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_
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/chrome_frame_npapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698