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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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
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 // This file replaces WebCore/platform/network/win/ResourceHandleWin.cpp with a 5 // This file replaces WebCore/platform/network/win/ResourceHandleWin.cpp with a
6 // platform-neutral implementation that simply defers almost entirely to 6 // platform-neutral implementation that simply defers almost entirely to
7 // ResouceLoaderBridge. 7 // ResouceLoaderBridge.
8 // 8 //
9 // This uses the same ResourceHandle.h header file that the rest of WebKit 9 // This uses the same ResourceHandle.h header file that the rest of WebKit
10 // uses, allowing us to avoid complicated changes. Our specific things are 10 // uses, allowing us to avoid complicated changes. Our specific things are
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "webkit/glue/glue_util.h" 52 #include "webkit/glue/glue_util.h"
53 #include "webkit/glue/multipart_response_delegate.h" 53 #include "webkit/glue/multipart_response_delegate.h"
54 #include "webkit/glue/resource_loader_bridge.h" 54 #include "webkit/glue/resource_loader_bridge.h"
55 #include "webkit/glue/webframe_impl.h" 55 #include "webkit/glue/webframe_impl.h"
56 #include "net/base/data_url.h" 56 #include "net/base/data_url.h"
57 #include "net/base/net_errors.h" 57 #include "net/base/net_errors.h"
58 #include "net/base/net_util.h" 58 #include "net/base/net_util.h"
59 #include "net/base/load_flags.h" 59 #include "net/base/load_flags.h"
60 60
61 using webkit_glue::ResourceLoaderBridge; 61 using webkit_glue::ResourceLoaderBridge;
62 using base::Time;
63 using base::TimeDelta;
62 using net::HttpResponseHeaders; 64 using net::HttpResponseHeaders;
63 65
64 namespace { 66 namespace {
65 67
66 // Extracts the information from a data: url. 68 // Extracts the information from a data: url.
67 bool GetInfoFromDataUrl(const GURL& url, 69 bool GetInfoFromDataUrl(const GURL& url,
68 ResourceLoaderBridge::ResponseInfo* info, 70 ResourceLoaderBridge::ResponseInfo* info,
69 std::string* data, URLRequestStatus* status) { 71 std::string* data, URLRequestStatus* status) {
70 std::string mime_type; 72 std::string mime_type;
71 std::string charset; 73 std::string charset;
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 // if the request cannot be serviced from cache. We force the 'DontLoad' 746 // if the request cannot be serviced from cache. We force the 'DontLoad'
745 // cache policy at this point to ensure that we never hit the network for 747 // cache policy at this point to ensure that we never hit the network for
746 // this request. 748 // this request.
747 // 749 //
748 DCHECK(request.httpMethod() == "POST"); 750 DCHECK(request.httpMethod() == "POST");
749 request.setCachePolicy(ReturnCacheDataDontLoad); 751 request.setCachePolicy(ReturnCacheDataDontLoad);
750 return true; 752 return true;
751 } 753 }
752 754
753 } // namespace WebCore 755 } // namespace WebCore
754
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698