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

Side by Side Diff: chrome_frame/chrome_frame_npapi.h

Issue 6223003: Add support in the ChromeFrame NPAPI plugin for receiving URL redirect notifi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome_frame/chrome_frame_npapi.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 bool SetWindow(NPWindow* window_info); 68 bool SetWindow(NPWindow* window_info);
69 void UrlNotify(const char* url, NPReason reason, void* notify_data); 69 void UrlNotify(const char* url, NPReason reason, void* notify_data);
70 NPError NewStream(NPMIMEType type, NPStream* stream, NPBool seekable, 70 NPError NewStream(NPMIMEType type, NPStream* stream, NPBool seekable,
71 uint16* stream_type); 71 uint16* stream_type);
72 int32 WriteReady(NPStream* stream); 72 int32 WriteReady(NPStream* stream);
73 int32 Write(NPStream* stream, int32 offset, int32 len, void* buffer); 73 int32 Write(NPStream* stream, int32 offset, int32 len, void* buffer);
74 NPError DestroyStream(NPStream* stream, NPReason reason); 74 NPError DestroyStream(NPStream* stream, NPReason reason);
75 75
76 void Print(NPPrint* print_info); 76 void Print(NPPrint* print_info);
77 void URLRedirectNotify(const char* url, int status, void* notify_data);
77 78
78 // NPObject functions, which ensure that the plugin object is scriptable. 79 // NPObject functions, which ensure that the plugin object is scriptable.
79 static bool HasMethod(NPObject* obj, NPIdentifier name); 80 static bool HasMethod(NPObject* obj, NPIdentifier name);
80 static bool Invoke(NPObject* header, NPIdentifier name, 81 static bool Invoke(NPObject* header, NPIdentifier name,
81 const NPVariant* args, uint32_t arg_count, 82 const NPVariant* args, uint32_t arg_count,
82 NPVariant* result); 83 NPVariant* result);
83 static NPObject* AllocateObject(NPP instance, NPClass* class_name); 84 static NPObject* AllocateObject(NPP instance, NPClass* class_name);
84 static void DeallocateObject(NPObject* header); 85 static void DeallocateObject(NPObject* header);
85 86
86 // Called by the scripting environment when the native code is shutdown. 87 // Called by the scripting environment when the native code is shutdown.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // The value of src property keeping the current URL. 345 // The value of src property keeping the current URL.
345 std::string src_; 346 std::string src_;
346 // Used to fetch network resources when host network stack is in use. 347 // Used to fetch network resources when host network stack is in use.
347 NPAPIUrlRequestManager url_fetcher_; 348 NPAPIUrlRequestManager url_fetcher_;
348 349
349 // Set if we receive a navigation request before initializing Chrome. 350 // Set if we receive a navigation request before initializing Chrome.
350 bool navigate_after_initialization_; 351 bool navigate_after_initialization_;
351 }; 352 };
352 353
353 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_ 354 #endif // CHROME_FRAME_CHROME_FRAME_NPAPI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/chrome_frame_npapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698