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

Side by Side Diff: webkit/glue/webview_delegate.h

Issue 27157: Initial checkin of the out of process worker implementation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « webkit/glue/glue.vcproj ('k') | webkit/glue/webworker.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // WebCore provides hooks for several kinds of functionality, allowing separate 5 // WebCore provides hooks for several kinds of functionality, allowing separate
6 // classes termed "delegates" to receive notifications (in the form of direct 6 // classes termed "delegates" to receive notifications (in the form of direct
7 // function calls) when certain events are about to occur or have just occurred. 7 // function calls) when certain events are about to occur or have just occurred.
8 // In some cases, the delegate implements the needed functionality; in others, 8 // In some cases, the delegate implements the needed functionality; in others,
9 // the delegate has some control over the behavior but doesn't actually 9 // the delegate has some control over the behavior but doesn't actually
10 // implement it. For example, the UI delegate is responsible for showing a 10 // implement it. For example, the UI delegate is responsible for showing a
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class SkBitmap; 47 class SkBitmap;
48 class WebError; 48 class WebError;
49 class WebFrame; 49 class WebFrame;
50 class WebHistoryItem; 50 class WebHistoryItem;
51 class WebMediaPlayerDelegate; 51 class WebMediaPlayerDelegate;
52 class WebPluginDelegate; 52 class WebPluginDelegate;
53 class WebRequest; 53 class WebRequest;
54 class WebResponse; 54 class WebResponse;
55 class WebView; 55 class WebView;
56 class WebWidget; 56 class WebWidget;
57 class WebWorker;
58 class WebWorkerClient;
57 59
58 enum WebNavigationType { 60 enum WebNavigationType {
59 WebNavigationTypeLinkClicked, 61 WebNavigationTypeLinkClicked,
60 WebNavigationTypeFormSubmitted, 62 WebNavigationTypeFormSubmitted,
61 WebNavigationTypeBackForward, 63 WebNavigationTypeBackForward,
62 WebNavigationTypeReload, 64 WebNavigationTypeReload,
63 WebNavigationTypeFormResubmitted, 65 WebNavigationTypeFormResubmitted,
64 WebNavigationTypeOther 66 WebNavigationTypeOther
65 }; 67 };
66 68
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // platform-neutral 122 // platform-neutral
121 virtual WebPluginDelegate* CreatePluginDelegate( 123 virtual WebPluginDelegate* CreatePluginDelegate(
122 WebView* webview, 124 WebView* webview,
123 const GURL& url, 125 const GURL& url,
124 const std::string& mime_type, 126 const std::string& mime_type,
125 const std::string& clsid, 127 const std::string& clsid,
126 std::string* actual_mime_type) { 128 std::string* actual_mime_type) {
127 return NULL; 129 return NULL;
128 } 130 }
129 131
132 // This method is called when the renderer creates a worker object.
133 virtual WebWorker* CreateWebWorker(WebWorkerClient* client) {
134 return NULL;
135 }
136
130 // Called when a WebMediaPlayerDelegate is needed. 137 // Called when a WebMediaPlayerDelegate is needed.
131 virtual webkit_glue::WebMediaPlayerDelegate* CreateMediaPlayerDelegate() { 138 virtual webkit_glue::WebMediaPlayerDelegate* CreateMediaPlayerDelegate() {
132 return NULL; 139 return NULL;
133 } 140 }
134 141
135 // This method is called when default plugin has been correctly created and 142 // This method is called when default plugin has been correctly created and
136 // initialized, and found that the missing plugin is available to install or 143 // initialized, and found that the missing plugin is available to install or
137 // user has started installation. 144 // user has started installation.
138 virtual void OnMissingPluginStatus(WebPluginDelegate* delegate, int status) { 145 virtual void OnMissingPluginStatus(WebPluginDelegate* delegate, int status) {
139 } 146 }
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 virtual void DidAddHistoryItem() { } 772 virtual void DidAddHistoryItem() { }
766 773
767 WebViewDelegate() { } 774 WebViewDelegate() { }
768 virtual ~WebViewDelegate() { } 775 virtual ~WebViewDelegate() { }
769 776
770 private: 777 private:
771 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 778 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
772 }; 779 };
773 780
774 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 781 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/glue.vcproj ('k') | webkit/glue/webworker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698