OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "public/platform/WebURLRequest.h" | 32 #include "public/platform/WebURLRequest.h" |
33 | 33 |
34 #include "platform/exported/WebURLRequestPrivate.h" | 34 #include "platform/exported/WebURLRequestPrivate.h" |
35 #include "platform/network/ResourceRequest.h" | 35 #include "platform/network/ResourceRequest.h" |
36 #include "public/platform/WebHTTPBody.h" | 36 #include "public/platform/WebHTTPBody.h" |
37 #include "public/platform/WebHTTPHeaderVisitor.h" | 37 #include "public/platform/WebHTTPHeaderVisitor.h" |
38 #include "public/platform/WebURL.h" | 38 #include "public/platform/WebURL.h" |
39 | 39 |
40 using namespace blink; | |
41 | |
42 namespace blink { | 40 namespace blink { |
43 | 41 |
44 namespace { | 42 namespace { |
45 | 43 |
46 class ExtraDataContainer : public ResourceRequest::ExtraData { | 44 class ExtraDataContainer : public ResourceRequest::ExtraData { |
47 public: | 45 public: |
48 static PassRefPtr<ExtraDataContainer> create(WebURLRequest::ExtraData* extra
Data) { return adoptRef(new ExtraDataContainer(extraData)); } | 46 static PassRefPtr<ExtraDataContainer> create(WebURLRequest::ExtraData* extra
Data) { return adoptRef(new ExtraDataContainer(extraData)); } |
49 | 47 |
50 virtual ~ExtraDataContainer() { } | 48 virtual ~ExtraDataContainer() { } |
51 | 49 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 // Subclasses may call this directly so a self-assignment check is needed | 348 // Subclasses may call this directly so a self-assignment check is needed |
351 // here as well as in the public assign method. | 349 // here as well as in the public assign method. |
352 if (m_private == p) | 350 if (m_private == p) |
353 return; | 351 return; |
354 if (m_private) | 352 if (m_private) |
355 m_private->dispose(); | 353 m_private->dispose(); |
356 m_private = p; | 354 m_private = p; |
357 } | 355 } |
358 | 356 |
359 } // namespace blink | 357 } // namespace blink |
OLD | NEW |