Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / mojo / loader / job.h
blob253e9ae5fa06c3a0cc55bdfd47f8cd71b69b1cc6
1 // Copyright 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.
5 #ifndef MOJO_LOADER_JOB_H_
6 #define MOJO_LOADER_JOB_H_
8 #include "url/gurl.h"
10 namespace base {
11 class FilePath;
14 namespace mojo {
15 namespace loader {
17 // A job represents an individual network load operation.
18 class Job {
19 public:
20 class Delegate {
21 public:
22 virtual void DidCompleteLoad(const GURL& app_url,
23 const base::FilePath& app_path) = 0;
25 protected:
26 virtual ~Delegate();
29 // You can cancel a job by deleting it.
30 virtual ~Job();
32 protected:
33 // You can create a job using Loader.
34 Job();
36 DISALLOW_COPY_AND_ASSIGN(Job);
39 } // namespace loader
40 } // namespace mojo
42 #endif // MOJO_LOADER_JOB_H_