OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "webkit/glue/webkitclient_impl.h" | 5 #include "webkit/glue/webkitclient_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 | 112 |
113 WebThemeEngine* WebKitClientImpl::themeEngine() { | 113 WebThemeEngine* WebKitClientImpl::themeEngine() { |
114 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
115 return &theme_engine_; | 115 return &theme_engine_; |
116 #else | 116 #else |
117 return NULL; | 117 return NULL; |
118 #endif | 118 #endif |
119 } | 119 } |
120 | 120 |
121 bool WebKitClientImpl::rawCookies(const WebURL& url, | |
122 const WebURL& first_party_for_cookies, | |
123 WebVector<WebCookie>* raw_cookies) { | |
124 NOTREACHED(); | |
125 return false; | |
126 } | |
127 | |
128 void WebKitClientImpl::deleteCookie(const WebURL& url, | |
129 const WebString& cookie_name) { | |
130 NOTREACHED(); | |
131 } | |
132 | |
133 WebURLLoader* WebKitClientImpl::createURLLoader() { | 121 WebURLLoader* WebKitClientImpl::createURLLoader() { |
134 return new WebURLLoaderImpl(); | 122 return new WebURLLoaderImpl(); |
135 } | 123 } |
136 | 124 |
137 WebSocketStreamHandle* WebKitClientImpl::createSocketStreamHandle() { | 125 WebSocketStreamHandle* WebKitClientImpl::createSocketStreamHandle() { |
138 return new WebSocketStreamHandleImpl(); | 126 return new WebSocketStreamHandleImpl(); |
139 } | 127 } |
140 | 128 |
141 WebString WebKitClientImpl::userAgent(const WebURL& url) { | 129 WebString WebKitClientImpl::userAgent(const WebURL& url) { |
142 return WebString::fromUTF8(webkit_glue::GetUserAgent(url)); | 130 return WebString::fromUTF8(webkit_glue::GetUserAgent(url)); |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 ++shared_timer_suspended_; | 392 ++shared_timer_suspended_; |
405 } | 393 } |
406 | 394 |
407 void WebKitClientImpl::ResumeSharedTimer() { | 395 void WebKitClientImpl::ResumeSharedTimer() { |
408 // The shared timer may have fired or been adjusted while we were suspended. | 396 // The shared timer may have fired or been adjusted while we were suspended. |
409 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) | 397 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) |
410 setSharedTimerFireTime(shared_timer_fire_time_); | 398 setSharedTimerFireTime(shared_timer_fire_time_); |
411 } | 399 } |
412 | 400 |
413 } // namespace webkit_glue | 401 } // namespace webkit_glue |
OLD | NEW |