blob: 7bea03ed2f523a06675597a426db6d6d199cadd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef Location_h
#define Location_h
#include <wtf/RefCounted.h>
#include "Frame.h"
namespace WebCore {
class Location : public RefCounted<Location> {
public:
Location::Location(Frame* frame) : m_frame(frame) { }
Frame* frame() { return m_frame; }
String hash();
void setHash(const String& str);
String host();
void setHost(const String& str);
String hostname();
void setHostname(const String&);
String href();
void setHref(const String&);
String pathname();
void setPathname(const String&);
String port();
void setPort(const String&);
String protocol();
void setProtocol(const String&);
String search();
void setSearch(const String&);
void reload(bool forceget);
void replace(const String& url);
void assign(const String& url);
String toString();
void disconnectFrame() { m_frame = 0; }
private:
Frame* m_frame;
friend class WindowV8;
void ChangeLocationTo(const KURL& url, bool lock_history);
};
} // namespace WebCore
#endif // Location_h
|