Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MOJO_LOADER_JOB_H_ | |
| 6 #define MOJO_LOADER_JOB_H_ | |
| 7 | |
| 8 #include "url/gurl.h" | |
| 9 | |
| 10 namespace mojo { | |
| 11 namespace loader { | |
| 12 | |
| 13 class Job { | |
|
Aaron Boodman
2013/10/18 17:59:42
I think a class-header comment is warranted here e
| |
| 14 public: | |
| 15 class Delegate { | |
| 16 public: | |
| 17 virtual void DidCompleteLoad(const GURL& app_url) = 0; | |
| 18 | |
| 19 protected: | |
| 20 virtual ~Delegate(); | |
| 21 }; | |
| 22 | |
| 23 // You can cancel a job by deleting it. | |
| 24 virtual ~Job(); | |
| 25 | |
| 26 protected: | |
| 27 // You can create a job using Loader. | |
| 28 Job(); | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(Job); | |
| 31 }; | |
| 32 | |
| 33 } // namespace loader | |
| 34 } // namespace mojo | |
| 35 | |
| 36 #endif // MOJO_LOADER_JOB_H_ | |
| OLD | NEW |