OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Motorola Mobility Inc. | 2 * Copyright (C) 2012 Motorola Mobility Inc. |
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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class KURL; | 37 class KURL; |
38 class ExecutionContext; | 38 class ExecutionContext; |
39 class SecurityOrigin; | 39 class SecurityOrigin; |
40 class URLRegistry; | 40 class URLRegistry; |
41 class URLRegistrable; | 41 class URLRegistrable; |
42 | 42 |
43 class PublicURLManager : public ActiveDOMObject { | 43 class PublicURLManager FINAL : public ActiveDOMObject { |
44 WTF_MAKE_FAST_ALLOCATED; | 44 WTF_MAKE_FAST_ALLOCATED; |
45 public: | 45 public: |
46 static PassOwnPtr<PublicURLManager> create(ExecutionContext*); | 46 static PassOwnPtr<PublicURLManager> create(ExecutionContext*); |
47 | 47 |
48 void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*); | 48 void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*); |
49 void revoke(const KURL&); | 49 void revoke(const KURL&); |
50 | 50 |
51 // ActiveDOMObject interface. | 51 // ActiveDOMObject interface. |
52 virtual void stop() OVERRIDE; | 52 virtual void stop() OVERRIDE; |
53 | 53 |
54 private: | 54 private: |
55 PublicURLManager(ExecutionContext*); | 55 PublicURLManager(ExecutionContext*); |
56 | 56 |
57 typedef HashSet<String> URLSet; | 57 typedef HashSet<String> URLSet; |
58 typedef HashMap<URLRegistry*, URLSet > RegistryURLMap; | 58 typedef HashMap<URLRegistry*, URLSet > RegistryURLMap; |
59 RegistryURLMap m_registryToURL; | 59 RegistryURLMap m_registryToURL; |
60 bool m_isStopped; | 60 bool m_isStopped; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace WebCore | 63 } // namespace WebCore |
64 | 64 |
65 #endif // PUBLICURLMANAGER_h | 65 #endif // PUBLICURLMANAGER_h |
OLD | NEW |