| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #include "core/frame/FrameClient.h" | 33 #include "core/frame/FrameClient.h" |
| 34 #include "core/loader/FrameLoaderTypes.h" | 34 #include "core/loader/FrameLoaderTypes.h" |
| 35 #include "core/loader/NavigationPolicy.h" | 35 #include "core/loader/NavigationPolicy.h" |
| 36 #include "platform/network/ResourceLoadPriority.h" | 36 #include "platform/network/ResourceLoadPriority.h" |
| 37 #include "platform/weborigin/Referrer.h" | 37 #include "platform/weborigin/Referrer.h" |
| 38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 40 #include <v8.h> | 40 #include <v8.h> |
| 41 | 41 |
| 42 namespace mojo { |
| 43 class View; |
| 44 } |
| 45 |
| 42 namespace blink { | 46 namespace blink { |
| 43 | 47 |
| 44 class Color; | 48 class Color; |
| 45 class Document; | 49 class Document; |
| 46 class DOMWindowExtension; | 50 class DOMWindowExtension; |
| 47 class DOMWrapperWorld; | 51 class DOMWrapperWorld; |
| 48 class Element; | 52 class Element; |
| 49 class FetchRequest; | 53 class FetchRequest; |
| 50 class FrameLoader; | 54 class FrameLoader; |
| 51 class FrameNetworkingContext; | 55 class FrameNetworkingContext; |
| 56 class IntRect; |
| 52 class IntSize; | 57 class IntSize; |
| 53 class KURL; | 58 class KURL; |
| 54 class LocalFrame; | 59 class LocalFrame; |
| 55 class Page; | 60 class Page; |
| 61 class RemoteFrame; |
| 56 class ResourceError; | 62 class ResourceError; |
| 57 class ResourceHandle; | 63 class ResourceHandle; |
| 58 class ResourceRequest; | 64 class ResourceRequest; |
| 59 class ResourceResponse; | 65 class ResourceResponse; |
| 60 class SharedBuffer; | 66 class SharedBuffer; |
| 61 class Widget; | 67 class Widget; |
| 62 | 68 |
| 63 class FrameLoaderClient : public FrameClient { | 69 class FrameLoaderClient : public FrameClient { |
| 64 public: | 70 public: |
| 65 virtual ~FrameLoaderClient() { } | 71 virtual ~FrameLoaderClient() { } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 80 | 86 |
| 81 virtual void dispatchAddNavigationTransitionData(const String& origin, c
onst String& selector, const String& markup) { } | 87 virtual void dispatchAddNavigationTransitionData(const String& origin, c
onst String& selector, const String& markup) { } |
| 82 virtual void dispatchWillRequestResource(FetchRequest*) { } | 88 virtual void dispatchWillRequestResource(FetchRequest*) { } |
| 83 | 89 |
| 84 virtual void didStartLoading(LoadStartType) = 0; | 90 virtual void didStartLoading(LoadStartType) = 0; |
| 85 virtual void progressEstimateChanged(double progressEstimate) = 0; | 91 virtual void progressEstimateChanged(double progressEstimate) = 0; |
| 86 virtual void didStopLoading() = 0; | 92 virtual void didStopLoading() = 0; |
| 87 | 93 |
| 88 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy,
const String& suggestedName = String()) = 0; | 94 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy,
const String& suggestedName = String()) = 0; |
| 89 | 95 |
| 90 // TODO(mpcomplete): return surface ID? | 96 virtual mojo::View* createChildFrame(const KURL&) = 0; |
| 91 virtual void createView(const KURL&) = 0; | |
| 92 | 97 |
| 93 // Transmits the change in the set of watched CSS selectors property | 98 // Transmits the change in the set of watched CSS selectors property |
| 94 // that match any element on the frame. | 99 // that match any element on the frame. |
| 95 virtual void selectorMatchChanged(const Vector<String>& addedSelectors,
const Vector<String>& removedSelectors) = 0; | 100 virtual void selectorMatchChanged(const Vector<String>& addedSelectors,
const Vector<String>& removedSelectors) = 0; |
| 96 | 101 |
| 97 virtual void transitionToCommittedForNewPage() = 0; | 102 virtual void transitionToCommittedForNewPage() = 0; |
| 98 | 103 |
| 99 | 104 |
| 100 virtual void documentElementAvailable() = 0; | 105 virtual void documentElementAvailable() = 0; |
| 101 | 106 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 112 virtual void dispatchDidChangeResourcePriority(unsigned long identifier,
ResourceLoadPriority, int intraPriorityValue) { } | 117 virtual void dispatchDidChangeResourcePriority(unsigned long identifier,
ResourceLoadPriority, int intraPriorityValue) { } |
| 113 | 118 |
| 114 virtual void dispatchDidChangeManifest() { } | 119 virtual void dispatchDidChangeManifest() { } |
| 115 | 120 |
| 116 virtual bool isFrameLoaderClientImpl() const { return false; } | 121 virtual bool isFrameLoaderClientImpl() const { return false; } |
| 117 }; | 122 }; |
| 118 | 123 |
| 119 } // namespace blink | 124 } // namespace blink |
| 120 | 125 |
| 121 #endif // FrameLoaderClient_h | 126 #endif // FrameLoaderClient_h |
| OLD | NEW |