| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   55  |   55  | 
|   56 // FrameHost is the set of global data shared between multiple frames |   56 // FrameHost is the set of global data shared between multiple frames | 
|   57 // and is provided by the embedder to each frame when created. |   57 // and is provided by the embedder to each frame when created. | 
|   58 // FrameHost currently corresponds to the Page object in core/page |   58 // FrameHost currently corresponds to the Page object in core/page | 
|   59 // however the concept of a Page is moving up out of Blink. |   59 // however the concept of a Page is moving up out of Blink. | 
|   60 // In an out-of-process iframe world, a single Page may have |   60 // In an out-of-process iframe world, a single Page may have | 
|   61 // multiple frames in different process, thus Page becomes a |   61 // multiple frames in different process, thus Page becomes a | 
|   62 // browser-level concept and Blink core/ only knows about its LocalFrame (and Fr
     ameHost). |   62 // browser-level concept and Blink core/ only knows about its LocalFrame (and Fr
     ameHost). | 
|   63 // Separating Page from the rest of core/ through this indirection |   63 // Separating Page from the rest of core/ through this indirection | 
|   64 // allows us to slowly refactor Page without breaking the rest of core. |   64 // allows us to slowly refactor Page without breaking the rest of core. | 
|   65 class CORE_EXPORT FrameHost final : public NoBaseWillBeGarbageCollectedFinalized
     <FrameHost> { |   65 class CORE_EXPORT FrameHost final : public GarbageCollectedFinalized<FrameHost> 
     { | 
|   66     WTF_MAKE_NONCOPYABLE(FrameHost); USING_FAST_MALLOC_WILL_BE_REMOVED(FrameHost
     ); |   66     WTF_MAKE_NONCOPYABLE(FrameHost); | 
|   67 public: |   67 public: | 
|   68     static PassOwnPtrWillBeRawPtr<FrameHost> create(Page&); |   68     static RawPtr<FrameHost> create(Page&); | 
|   69     ~FrameHost(); |   69     ~FrameHost(); | 
|   70  |   70  | 
|   71     // Careful: This function will eventually be removed. |   71     // Careful: This function will eventually be removed. | 
|   72     Page& page() const { return *m_page; } |   72     Page& page() const { return *m_page; } | 
|   73     Settings& settings() const; |   73     Settings& settings() const; | 
|   74     ChromeClient& chromeClient() const; |   74     ChromeClient& chromeClient() const; | 
|   75     UseCounter& useCounter() const; |   75     UseCounter& useCounter() const; | 
|   76     Deprecation& deprecation() const; |   76     Deprecation& deprecation() const; | 
|   77  |   77  | 
|   78     // Corresponds to pixel density of the device where this Page is |   78     // Corresponds to pixel density of the device where this Page is | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|  100     void incrementSubframeCount() { ++m_subframeCount; } |  100     void incrementSubframeCount() { ++m_subframeCount; } | 
|  101     void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount; 
     } |  101     void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount; 
     } | 
|  102     int subframeCount() const; |  102     int subframeCount() const; | 
|  103  |  103  | 
|  104     void setDefaultPageScaleLimits(float minScale, float maxScale); |  104     void setDefaultPageScaleLimits(float minScale, float maxScale); | 
|  105     void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); |  105     void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); | 
|  106  |  106  | 
|  107 private: |  107 private: | 
|  108     explicit FrameHost(Page&); |  108     explicit FrameHost(Page&); | 
|  109  |  109  | 
|  110     RawPtrWillBeMember<Page> m_page; |  110     Member<Page> m_page; | 
|  111     const OwnPtrWillBeMember<TopControls> m_topControls; |  111     const Member<TopControls> m_topControls; | 
|  112     const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; |  112     const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; | 
|  113     const OwnPtrWillBeMember<VisualViewport> m_visualViewport; |  113     const Member<VisualViewport> m_visualViewport; | 
|  114     const OwnPtrWillBeMember<EventHandlerRegistry> m_eventHandlerRegistry; |  114     const Member<EventHandlerRegistry> m_eventHandlerRegistry; | 
|  115     const OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage; |  115     const Member<ConsoleMessageStorage> m_consoleMessageStorage; | 
|  116  |  116  | 
|  117     AtomicString m_overrideEncoding; |  117     AtomicString m_overrideEncoding; | 
|  118     int m_subframeCount; |  118     int m_subframeCount; | 
|  119 }; |  119 }; | 
|  120  |  120  | 
|  121 } // namespace blink |  121 } // namespace blink | 
|  122  |  122  | 
|  123 #endif // FrameHost_h |  123 #endif // FrameHost_h | 
| OLD | NEW |