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

Side by Side Diff: content/test/weburl_loader_mock.h

Issue 293003004: Prevents WebURLLoaderMock to crash when didReceiveResponse calls ::cancel(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_chrame
Patch Set: remove changes from other cl Created 6 years, 6 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
« no previous file with comments | « no previous file | content/test/weburl_loader_mock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_TEST_WEBURL_LOADER_MOCK_H_ 5 #ifndef CONTENT_TEST_WEBURL_LOADER_MOCK_H_
6 #define CONTENT_TEST_WEBURL_LOADER_MOCK_H_ 6 #define CONTENT_TEST_WEBURL_LOADER_MOCK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "third_party/WebKit/public/platform/WebURLLoader.h" 10 #include "third_party/WebKit/public/platform/WebURLLoader.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void setDefersLoading(bool defer); 50 virtual void setDefersLoading(bool defer);
51 51
52 bool isDeferred() { return is_deferred_; } 52 bool isDeferred() { return is_deferred_; }
53 53
54 private: 54 private:
55 WebURLLoaderMockFactory* factory_; 55 WebURLLoaderMockFactory* factory_;
56 blink::WebURLLoaderClient* client_; 56 blink::WebURLLoaderClient* client_;
57 scoped_ptr<blink::WebURLLoader> default_loader_; 57 scoped_ptr<blink::WebURLLoader> default_loader_;
58 bool using_default_loader_; 58 bool using_default_loader_;
59 bool is_deferred_; 59 bool is_deferred_;
60 bool* this_deleted_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMock); 62 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMock);
62 }; 63 };
63 64
64 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_H_ 65 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_H_
OLDNEW
« no previous file with comments | « no previous file | content/test/weburl_loader_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698