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

Side by Side Diff: chrome/browser/dom_ui/chrome_url_data_manager.cc

Issue 5298008: net: Add namespace net to URLRequest and URLRequestJob classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some chromeos fixes Created 10 years 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) 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 "chrome/browser/dom_ui/chrome_url_data_manager.h" 5 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 21 matching lines...) Expand all
32 #include "net/base/io_buffer.h" 32 #include "net/base/io_buffer.h"
33 #include "net/base/net_errors.h" 33 #include "net/base/net_errors.h"
34 #include "net/url_request/url_request.h" 34 #include "net/url_request/url_request.h"
35 #include "net/url_request/url_request_file_job.h" 35 #include "net/url_request/url_request_file_job.h"
36 #include "net/url_request/url_request_job.h" 36 #include "net/url_request/url_request_job.h"
37 37
38 // URLRequestChromeJob is a URLRequestJob that manages running chrome-internal 38 // URLRequestChromeJob is a URLRequestJob that manages running chrome-internal
39 // resource requests asynchronously. 39 // resource requests asynchronously.
40 // It hands off URL requests to ChromeURLDataManager, which asynchronously 40 // It hands off URL requests to ChromeURLDataManager, which asynchronously
41 // calls back once the data is available. 41 // calls back once the data is available.
42 class URLRequestChromeJob : public URLRequestJob { 42 class URLRequestChromeJob : public net::URLRequestJob {
43 public: 43 public:
44 explicit URLRequestChromeJob(URLRequest* request); 44 explicit URLRequestChromeJob(URLRequest* request);
45 45
46 // URLRequestJob implementation. 46 // URLRequestJob implementation.
47 virtual void Start(); 47 virtual void Start();
48 virtual void Kill(); 48 virtual void Kill();
49 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read); 49 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
50 virtual bool GetMimeType(std::string* mime_type) const; 50 virtual bool GetMimeType(std::string* mime_type) const;
51 51
52 // Called by ChromeURLDataManager to notify us that the data blob is ready 52 // Called by ChromeURLDataManager to notify us that the data blob is ready
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 net::ERR_INVALID_URL)); 426 net::ERR_INVALID_URL));
427 } 427 }
428 } 428 }
429 429
430 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request, 430 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request,
431 const FilePath& path) 431 const FilePath& path)
432 : URLRequestFileJob(request, path) { 432 : URLRequestFileJob(request, path) {
433 } 433 }
434 434
435 URLRequestChromeFileJob::~URLRequestChromeFileJob() { } 435 URLRequestChromeFileJob::~URLRequestChromeFileJob() { }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698