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 // A job represents an individual network load operation. |
| 14 class Job { |
| 15 public: |
| 16 class Delegate { |
| 17 public: |
| 18 virtual void DidCompleteLoad(const GURL& app_url) = 0; |
| 19 |
| 20 protected: |
| 21 virtual ~Delegate(); |
| 22 }; |
| 23 |
| 24 // You can cancel a job by deleting it. |
| 25 virtual ~Job(); |
| 26 |
| 27 protected: |
| 28 // You can create a job using Loader. |
| 29 Job(); |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(Job); |
| 32 }; |
| 33 |
| 34 } // namespace loader |
| 35 } // namespace mojo |
| 36 |
| 37 #endif // MOJO_LOADER_JOB_H_ |
OLD | NEW |