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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameHost.h

Issue 2774823002: Remove FrameHost class (Closed)
Patch Set: Rebase Created 3 years, 8 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
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31 #ifndef FrameHost_h
32 #define FrameHost_h
33
34 #include "core/CoreExport.h"
35 #include "platform/heap/Handle.h"
36 #include "wtf/Allocator.h"
37 #include "wtf/Noncopyable.h"
38 #include "wtf/text/AtomicString.h"
39 #include <memory>
40
41 namespace blink {
42
43 class Page;
44
45 // FrameHost is the set of global data shared between multiple frames
46 // and is provided by the embedder to each frame when created.
47 // FrameHost currently corresponds to the Page object in core/page
48 // however the concept of a Page is moving up out of Blink.
49 // In an out-of-process iframe world, a single Page may have
50 // multiple frames in different process, thus Page becomes a
51 // browser-level concept and Blink core/ only knows about its LocalFrame (and
52 // FrameHost). Separating Page from the rest of core/ through this indirection
53 // allows us to slowly refactor Page without breaking the rest of core.
54 // TODO(sashab): Merge FrameHost back into Page. crbug.com/688614
55 class CORE_EXPORT FrameHost final
56 : public GarbageCollectedFinalized<FrameHost> {
57 WTF_MAKE_NONCOPYABLE(FrameHost);
58
59 public:
60 static FrameHost* create(Page&);
61 ~FrameHost();
62
63 DECLARE_TRACE();
64
65 private:
66 explicit FrameHost(Page&);
67
68 const Member<Page> m_page;
69 };
70
71 } // namespace blink
72
73 #endif // FrameHost_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.cpp ('k') | third_party/WebKit/Source/core/frame/FrameHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698