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

Side by Side Diff: webkit/glue/webkitclient_impl.cc

Issue 294025: DevTools: Implement raw cookies access for inspector. (Closed)
Patch Set: '' Created 11 years, 1 month 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include <math.h> 5 #include <math.h>
6 #include "config.h" 6 #include "config.h"
7 7
8 #include "FrameView.h" 8 #include "FrameView.h"
9 #include "ScrollView.h" 9 #include "ScrollView.h"
10 #include <wtf/Assertions.h> 10 #include <wtf/Assertions.h>
11 #undef LOG 11 #undef LOG
12 12
13 #include "webkit/glue/webkitclient_impl.h" 13 #include "webkit/glue/webkitclient_impl.h"
14 14
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/message_loop.h" 17 #include "base/message_loop.h"
18 #include "base/platform_file.h" 18 #include "base/platform_file.h"
19 #include "base/stats_counters.h" 19 #include "base/stats_counters.h"
20 #include "base/string_util.h" 20 #include "base/string_util.h"
21 #include "base/trace_event.h" 21 #include "base/trace_event.h"
22 #include "grit/webkit_resources.h" 22 #include "grit/webkit_resources.h"
23 #include "grit/webkit_strings.h" 23 #include "grit/webkit_strings.h"
24 #include "net/base/net_util.h" 24 #include "net/base/net_util.h"
25 #include "webkit/api/public/WebCookie.h"
25 #include "webkit/api/public/WebCursorInfo.h" 26 #include "webkit/api/public/WebCursorInfo.h"
26 #include "webkit/api/public/WebData.h" 27 #include "webkit/api/public/WebData.h"
27 #include "webkit/api/public/WebFrameClient.h" 28 #include "webkit/api/public/WebFrameClient.h"
28 #include "webkit/api/public/WebPluginListBuilder.h" 29 #include "webkit/api/public/WebPluginListBuilder.h"
29 #include "webkit/api/public/WebScreenInfo.h" 30 #include "webkit/api/public/WebScreenInfo.h"
30 #include "webkit/api/public/WebString.h" 31 #include "webkit/api/public/WebString.h"
32 #include "webkit/api/public/WebVector.h"
33 #include "webkit/api/public/WebURL.h"
31 #include "webkit/api/public/WebViewClient.h" 34 #include "webkit/api/public/WebViewClient.h"
32 #include "webkit/api/src/ChromeClientImpl.h" 35 #include "webkit/api/src/ChromeClientImpl.h"
33 #include "webkit/glue/glue_util.h" 36 #include "webkit/glue/glue_util.h"
34 #include "webkit/glue/plugins/plugin_instance.h" 37 #include "webkit/glue/plugins/plugin_instance.h"
35 #include "webkit/glue/webkit_glue.h" 38 #include "webkit/glue/webkit_glue.h"
36 #include "webkit/glue/webplugininfo.h" 39 #include "webkit/glue/webplugininfo.h"
37 #include "webkit/glue/websocketstreamhandle_impl.h" 40 #include "webkit/glue/websocketstreamhandle_impl.h"
38 #include "webkit/glue/weburlloader_impl.h" 41 #include "webkit/glue/weburlloader_impl.h"
39 #include "webkit/glue/webview_impl.h" 42 #include "webkit/glue/webview_impl.h"
40 #include "webkit/glue/webworkerclient_impl.h" 43 #include "webkit/glue/webworkerclient_impl.h"
41 44
42 using WebKit::ChromeClientImpl; 45 using WebKit::ChromeClientImpl;
43 using WebKit::WebApplicationCacheHost; 46 using WebKit::WebApplicationCacheHost;
44 using WebKit::WebApplicationCacheHostClient; 47 using WebKit::WebApplicationCacheHostClient;
48 using WebKit::WebCookie;
45 using WebKit::WebCursorInfo; 49 using WebKit::WebCursorInfo;
46 using WebKit::WebData; 50 using WebKit::WebData;
47 using WebKit::WebLocalizedString; 51 using WebKit::WebLocalizedString;
48 using WebKit::WebPluginListBuilder; 52 using WebKit::WebPluginListBuilder;
49 using WebKit::WebStorageNamespace; 53 using WebKit::WebStorageNamespace;
50 using WebKit::WebString; 54 using WebKit::WebString;
51 using WebKit::WebSocketStreamHandle; 55 using WebKit::WebSocketStreamHandle;
52 using WebKit::WebThemeEngine; 56 using WebKit::WebThemeEngine;
57 using WebKit::WebURL;
53 using WebKit::WebURLLoader; 58 using WebKit::WebURLLoader;
59 using WebKit::WebVector;
54 using WebKit::WebWidgetClient; 60 using WebKit::WebWidgetClient;
55 61
56 namespace { 62 namespace {
57 63
58 ChromeClientImpl* ToChromeClient(WebCore::Widget* widget) { 64 ChromeClientImpl* ToChromeClient(WebCore::Widget* widget) {
59 WebCore::FrameView* view; 65 WebCore::FrameView* view;
60 if (widget->isFrameView()) { 66 if (widget->isFrameView()) {
61 view = static_cast<WebCore::FrameView*>(widget); 67 view = static_cast<WebCore::FrameView*>(widget);
62 } else if (widget->parent() && widget->parent()->isFrameView()) { 68 } else if (widget->parent() && widget->parent()->isFrameView()) {
63 view = static_cast<WebCore::FrameView*>(widget->parent()); 69 view = static_cast<WebCore::FrameView*>(widget->parent());
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 152 }
147 153
148 WebThemeEngine* WebKitClientImpl::themeEngine() { 154 WebThemeEngine* WebKitClientImpl::themeEngine() {
149 #if defined(OS_WIN) 155 #if defined(OS_WIN)
150 return &theme_engine_; 156 return &theme_engine_;
151 #else 157 #else
152 return NULL; 158 return NULL;
153 #endif 159 #endif
154 } 160 }
155 161
162 bool WebKitClientImpl::rawCookies(const WebURL& url,
163 const WebURL& policy_url,
164 WebVector<WebCookie>* raw_cookies) {
165 NOTREACHED();
166 return false;
167 }
168
169 void WebKitClientImpl::deleteCookie(const WebURL& url,
170 const WebString& cookie_name) {
171 NOTREACHED();
172 }
173
156 WebURLLoader* WebKitClientImpl::createURLLoader() { 174 WebURLLoader* WebKitClientImpl::createURLLoader() {
157 return new WebURLLoaderImpl(); 175 return new WebURLLoaderImpl();
158 } 176 }
159 177
160 WebSocketStreamHandle* WebKitClientImpl::createSocketStreamHandle() { 178 WebSocketStreamHandle* WebKitClientImpl::createSocketStreamHandle() {
161 return new WebSocketStreamHandleImpl(); 179 return new WebSocketStreamHandleImpl();
162 } 180 }
163 181
164 void WebKitClientImpl::getPluginList(bool refresh, 182 void WebKitClientImpl::getPluginList(bool refresh,
165 WebPluginListBuilder* builder) { 183 WebPluginListBuilder* builder) {
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 return file_util::DirectoryExists(file_path); 540 return file_util::DirectoryExists(file_path);
523 } 541 }
524 542
525 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { 543 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) {
526 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); 544 FilePath file_path(webkit_glue::WebStringToFilePathString(path));
527 GURL file_url = net::FilePathToFileURL(file_path); 545 GURL file_url = net::FilePathToFileURL(file_path);
528 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url)); 546 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url));
529 } 547 }
530 548
531 } // namespace webkit_glue 549 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698