Home | History | Annotate | Download | only in base

Lines Matching refs:ExampleEmployer

22 // ExampleEmployer is a toy version of HostResolver
25 class ExampleEmployer {
27 ExampleEmployer();
28 ~ExampleEmployer();
39 DISALLOW_COPY_AND_ASSIGN(ExampleEmployer);
42 // Helper class; this is how ExampleEmployer puts work on a different thread
43 class ExampleEmployer::ExampleWorker
46 ExampleWorker(ExampleEmployer* employer, CompletionCallback* callback)
58 ExampleEmployer* employer_;
65 void ExampleEmployer::ExampleWorker::DoWork() {
72 // need to call its PostTask method inside a lock. See ~ExampleEmployer.
85 void ExampleEmployer::ExampleWorker::DoCallback() {
96 ExampleEmployer::ExampleEmployer() {
99 ExampleEmployer::~ExampleEmployer() {
102 bool ExampleEmployer::DoSomething(CompletionCallback* callback) {
119 ExampleEmployer boss;
127 // TODO: test deleting ExampleEmployer while work outstanding