| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 #ifndef ResourceLoaderHost_h | 31 #ifndef ResourceLoaderHost_h |
| 32 #define ResourceLoaderHost_h | 32 #define ResourceLoaderHost_h |
| 33 | 33 |
| 34 #include "platform/network/ResourceError.h" | 34 #include "platform/network/ResourceError.h" |
| 35 #include "platform/network/ResourceLoadPriority.h" | 35 #include "platform/network/ResourceLoadPriority.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class Resource; | 39 class Resource; |
| 40 class ResourceFetcher; | |
| 41 class LocalFrame; | |
| 42 class ResourceLoader; | 40 class ResourceLoader; |
| 43 class ResourceRequest; | 41 class ResourceRequest; |
| 44 class ResourceResponse; | 42 class ResourceResponse; |
| 45 | 43 |
| 46 struct FetchInitiatorInfo; | 44 struct FetchInitiatorInfo; |
| 47 | 45 |
| 48 class ResourceLoaderHost : public WillBeGarbageCollectedMixin { | 46 class ResourceLoaderHost : public WillBeGarbageCollectedMixin { |
| 49 public: | 47 public: |
| 50 virtual void incrementRequestCount(const Resource*) = 0; | 48 virtual void incrementRequestCount(const Resource*) = 0; |
| 51 virtual void decrementRequestCount(const Resource*) = 0; | 49 virtual void decrementRequestCount(const Resource*) = 0; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 78 virtual void derefResourceLoaderHost() = 0; | 76 virtual void derefResourceLoaderHost() = 0; |
| 79 | 77 |
| 80 void ref() { refResourceLoaderHost(); } | 78 void ref() { refResourceLoaderHost(); } |
| 81 void deref() { derefResourceLoaderHost(); } | 79 void deref() { derefResourceLoaderHost(); } |
| 82 #endif | 80 #endif |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } | 83 } |
| 86 | 84 |
| 87 #endif // ResourceLoaderHost_h | 85 #endif // ResourceLoaderHost_h |
| OLD | NEW |