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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class WebSharedWorkerRepositoryClient; | 42 class WebSharedWorkerRepositoryClient; |
43 | 43 |
44 class SharedWorkerRepositoryClientImpl final | 44 class SharedWorkerRepositoryClientImpl final |
45 : public SharedWorkerRepositoryClient { | 45 : public SharedWorkerRepositoryClient { |
46 WTF_MAKE_NONCOPYABLE(SharedWorkerRepositoryClientImpl); | 46 WTF_MAKE_NONCOPYABLE(SharedWorkerRepositoryClientImpl); |
47 USING_FAST_MALLOC(SharedWorkerRepositoryClientImpl); | 47 USING_FAST_MALLOC(SharedWorkerRepositoryClientImpl); |
48 | 48 |
49 public: | 49 public: |
50 static std::unique_ptr<SharedWorkerRepositoryClientImpl> create( | 50 static std::unique_ptr<SharedWorkerRepositoryClientImpl> create( |
51 WebSharedWorkerRepositoryClient* client) { | 51 WebSharedWorkerRepositoryClient* client) { |
52 return wrapUnique(new SharedWorkerRepositoryClientImpl(client)); | 52 return WTF::wrapUnique(new SharedWorkerRepositoryClientImpl(client)); |
53 } | 53 } |
54 | 54 |
55 ~SharedWorkerRepositoryClientImpl() override {} | 55 ~SharedWorkerRepositoryClientImpl() override {} |
56 | 56 |
57 void connect(SharedWorker*, | 57 void connect(SharedWorker*, |
58 WebMessagePortChannelUniquePtr, | 58 WebMessagePortChannelUniquePtr, |
59 const KURL&, | 59 const KURL&, |
60 const String& name, | 60 const String& name, |
61 ExceptionState&) override; | 61 ExceptionState&) override; |
62 void documentDetached(Document*) override; | 62 void documentDetached(Document*) override; |
63 | 63 |
64 private: | 64 private: |
65 explicit SharedWorkerRepositoryClientImpl(WebSharedWorkerRepositoryClient*); | 65 explicit SharedWorkerRepositoryClientImpl(WebSharedWorkerRepositoryClient*); |
66 | 66 |
67 WebSharedWorkerRepositoryClient* m_client; | 67 WebSharedWorkerRepositoryClient* m_client; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif // SharedWorkerRepositoryClientImpl_h | 72 #endif // SharedWorkerRepositoryClientImpl_h |
OLD | NEW |