Page Speed Optimization Libraries
1.13.35.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
pagespeed
controller
schedule_rewrite_callback.h
Go to the documentation of this file.
1
// Copyright 2015 Google Inc.
16
17
#ifndef PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_CALLBACK_H_
18
#define PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_CALLBACK_H_
19
20
#include "
pagespeed/controller/central_controller_callback.h
"
21
#include "
pagespeed/kernel/base/basictypes.h
"
22
#include "
pagespeed/kernel/base/scoped_ptr.h
"
23
#include "
pagespeed/kernel/base/string.h
"
24
#include "
pagespeed/kernel/thread/sequence.h
"
25
27
28
namespace
net_instaweb {
29
31
class
ScheduleRewriteContext
{
32
public
:
33
virtual
~
ScheduleRewriteContext
();
34
37
virtual
void
MarkSucceeded
() = 0;
38
virtual
void
MarkFailed() = 0;
39
40
protected
:
41
ScheduleRewriteContext
();
42
43
private
:
44
45
};
46
48
class
ScheduleRewriteCallback
49
:
public
CentralControllerCallback
<ScheduleRewriteContext> {
50
public
:
51
explicit
ScheduleRewriteCallback
(
const
GoogleString
& key,
52
Sequence
* sequence);
53
virtual
~
ScheduleRewriteCallback
();
54
55
const
GoogleString
& key() {
return
key_; }
56
57
private
:
59
virtual
void
RunImpl(
scoped_ptr<ScheduleRewriteContext>
* context) = 0;
60
virtual
void
CancelImpl() = 0;
61
62
GoogleString
key_;
63
64
65
};
66
67
}
68
69
#endif
net_instaweb::ScheduleRewriteContext::MarkSucceeded
virtual void MarkSucceeded()=0
string.h
sequence.h
net_instaweb::ScheduleRewriteCallback
Implementor interface to rewrite scheduling features in CentralController.
Definition:
schedule_rewrite_callback.h:48
net_instaweb::Sequence
Definition:
sequence.h:33
net_instaweb::scoped_ptr< ScheduleRewriteContext >
net_instaweb::ScheduleRewriteContext
Passed to RunImpl for implementations of ScheduleRewriteCallback.
Definition:
schedule_rewrite_callback.h:31
GoogleString
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition:
string.h:24
central_controller_callback.h
net_instaweb::CentralControllerCallback
Definition:
central_controller_callback.h:60
scoped_ptr.h
basictypes.h
Generated on Fri Nov 3 2017 20:10:40 for Page Speed Optimization Libraries by
1.8.6