diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-01 02:17:08 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-01 02:17:08 +0000 |
commit | f214f8797150f49e1233110c1dafe4e8b601d9ea (patch) | |
tree | 191f4f5b9ee1d9c20fc02dd4f1c940ad4d04267c /chrome_frame/npapi_url_request.cc | |
parent | 34b9963c187a733bef76535521f3de688fffd34f (diff) | |
download | chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.zip chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.tar.gz chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.tar.bz2 |
Remove base/platform_thread.h stub and fix up all callers to use the new location and namespace.
TEST=none
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/npapi_url_request.cc')
-rw-r--r-- | chrome_frame/npapi_url_request.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome_frame/npapi_url_request.cc b/chrome_frame/npapi_url_request.cc index 1d57065..0a28cdd 100644 --- a/chrome_frame/npapi_url_request.cc +++ b/chrome_frame/npapi_url_request.cc @@ -5,6 +5,7 @@ #include "chrome_frame/npapi_url_request.h" #include "base/string_number_conversions.h" +#include "base/threading/platform_thread.h" #include "chrome_frame/np_browser_functions.h" #include "chrome_frame/np_utils.h" #include "net/base/net_errors.h" @@ -44,7 +45,7 @@ class NPAPIUrlRequest : public PluginUrlRequest { size_t pending_read_size_; URLRequestStatus status_; - PlatformThreadId thread_; + base::PlatformThreadId thread_; static int instance_count_; DISALLOW_COPY_AND_ASSIGN(NPAPIUrlRequest); }; @@ -55,7 +56,7 @@ NPAPIUrlRequest::NPAPIUrlRequest(NPP instance) : ref_count_(0), instance_(instance), stream_(NULL), pending_read_size_(0), status_(URLRequestStatus::FAILED, net::ERR_FAILED), - thread_(PlatformThread::CurrentId()) { + thread_(base::PlatformThread::CurrentId()) { DVLOG(1) << "Created request. Count: " << ++instance_count_; } @@ -187,13 +188,13 @@ int NPAPIUrlRequest::OnWrite(void* buffer, int len) { } STDMETHODIMP_(ULONG) NPAPIUrlRequest::AddRef() { - DCHECK_EQ(PlatformThread::CurrentId(), thread_); + DCHECK_EQ(base::PlatformThread::CurrentId(), thread_); ++ref_count_; return ref_count_; } STDMETHODIMP_(ULONG) NPAPIUrlRequest::Release() { - DCHECK_EQ(PlatformThread::CurrentId(), thread_); + DCHECK_EQ(base::PlatformThread::CurrentId(), thread_); unsigned long ret = --ref_count_; if (!ret) delete this; |